IUserDetailsService ForgotPassword Method (String, String) CelloSaaS API Documentation
This method is used to send mail to user with his/her password. Password may be old password or reseted password

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

void ForgotPassword(
	string userName,
	string tenantId
)

Parameters

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

ExceptionCondition
CelloSaaS.ServiceContracts.UserManagement InvalidUserNameExceptionIf user details was not available for the user name.
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 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