Пример #1
0
 /// <summary>
 /// Validate user credentials for personalized log-in.
 /// </summary>
 public override ACUserCredentialsValidationResult ValidateUserCredentials(string username, string password)
 {
     try
     {
         var valid = _client.CheckCredentials(username, password);
         return(new ACUserCredentialsValidationResult(valid));
     }
     catch (DemoApplicationClientException ex)
     {
         ACUtil.Log(true, "DemoACPlugin.ConnectionManager", "Error validating user credentials: " + ex.Message);
         return(new ACUserCredentialsValidationResult(false));
     }
 }