Example #1
0
        private bool IsValidUser(string username, string password, out Exception exception)
        {
            if (!authenticator.AuthenticateAndLogin(username, password))
            {
                exception = new XmlRpcFaultException(Convert.ToInt32(HttpStatusCode.Unauthorized), "Unauthorized user!");
                return(false);
            }

            exception = null;
            return(true);
        }
Example #2
0
 private bool ValidateUser(string username, string password)
 {
     return(authenticator.AuthenticateAndLogin(username, password));
 }