IUserDetailsService ValidateUser Method (String, String) CelloSaaS API Documentation
Validates the user login credentials. True if the valid credentials passed else False

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

[ObsoleteAttribute("Use the other overload provided")]
bool ValidateUser(
	string userName,
	string password
)

Parameters

userName
Type: System String
User Name(Mandatory)
password
Type: System String
Password (Mandatory)

Return Value

Type: Boolean
returns True/False
Exceptions

Examples

public void ValidateUser()
{
    string userName = "[email protected]";
    string password = "company";
    IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService));
    bool validUser = userDetailsService.ValidateUser(userName, password);
}
See Also