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

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

bool ValidateUser(
	string userName,
	string password,
	string companyCode
)

Parameters

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

Return Value

Type: Boolean
returns True/False
Exceptions

Examples

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