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

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 ForgotPassword(
	string userName
)

Parameters

userName
Type: System String
User Name(Mandatory)
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]";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    userDetailsService.ForgotPassword(userName);
}
See Also