Return a true/false value that indicates whether the supplied user credentials are valid or not for the specified domain. If a domain is not supplied, the user will be authenticated against the local machine user database.
Availability:
First available in version 3.0 build 2039.
Input Parameters:
domain - [Optional] - Domain name to use for authenticating user credentials. If you leave this argument empty (or you don't have a domain) the user will be authenticated against the system database on the local machine.
user - User name.
password - [Optional] - User password.
Output Parameters:
result - Return value is true if the user credentials are verified, or false if there are any problems.
Asynchronous Mode:
When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.
ssCore.SysInfo.authenticateUser( paramsObject [, callbackParamsObject] [, errorParamsObject] );
Synchronous Mode:
When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.
var returnObject = ssCore.SysInfo.authenticateUser( paramsObject );
Notes:
None.
Examples:
var return_obj = ssCore.SysInfo.authenticateUser({user:"John", password:"john123"});
ssDebug.trace(return_obj.result);