IUserDetailsService ResetPassword Method (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

[ObsoleteAttribute("Use the overload with tenantId parameter.")]
void ResetPassword(
	string userName
)

Parameters

userName
Type: System String
User Name(Mandatory)
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

public void ResetPassword()
{
    string userName = "[email protected]";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    userDetailsService.ResetPassword(userName);
}
See Also