Resets the password for a user
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- userName
- Type: System String
User Name(Mandatory)
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.UserManagement InvalidUserNameException | If the user name is not valid. |
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If Any exception occurred, while connecting or modifying the database. |
System ArgumentNullException | If 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