This method is used to send mail to user with his/her password.
Password may be old password or reseted password
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)
- tenantId
- Type: System String
Tenant Identifier
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.UserManagement InvalidUserNameException | If user details was not available for the user name. |
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
Publuic void ForgotPassword() { string userName = "[email protected]"; string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService)); userDetailsService.ForgotPassword(userName, tenantId); }
See Also