public bool Authenticate(string username, string hashedPassword, out AuthenticationStatus authenticationStatus, out string email) { var authenticationRequest = new AuthenticateRequest(); var server = GetIPConvergeServer(authenticationRequest); authenticationRequest.email_address = String.Empty; // "*****@*****.**"; authenticationRequest.md5_once_password = hashedPassword.ToLower(); authenticationRequest.username = username; AuthenticateResponse response = server.Authenticate(authenticationRequest); authenticationStatus = response.AuthenticationStatus; email = response.email; return(response.AuthenticationStatus == AuthenticationStatus.Success); }
public bool Authenticate(string username, string hashedPassword, out AuthenticationStatus authenticationStatus, out string email) { var authenticationRequest = new AuthenticateRequest(); var server = GetIPConvergeServer(authenticationRequest); authenticationRequest.email_address = String.Empty; // "*****@*****.**"; authenticationRequest.md5_once_password = hashedPassword.ToLower(); authenticationRequest.username = username; AuthenticateResponse response = server.Authenticate(authenticationRequest); authenticationStatus = response.AuthenticationStatus; email = response.email; return response.AuthenticationStatus == AuthenticationStatus.Success; }