IUserDetailsService ResetPassword Method (String, String) CelloSaaS API Documentation
Resets the password for a user

Namespace: CelloSaaS.ServiceContracts.UserManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

void ResetPassword(
	string userName,
	string tenantId
)

Parameters

userName
Type: System String
User Name(Mandatory)
tenantId
Type: System String
Tenant Identifier
Exceptions

ExceptionCondition
CelloSaaS.ServiceContracts.UserManagement InvalidUserNameExceptionIf the user name is not valid.
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
System ArgumentNullExceptionIf the user name is null or empty
Examples

Publuic void ResetPassword()
{
    string userName = "[email protected]";
    string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    userDetailsService.ResetPassword(userName, tenantId);
}
See Also