public int ValidateUser(string username, string password) { if (!_loginContext.ValidateUsername(username)) { return(-2); } if (!_loginContext.MatchUsernameAndPassword(username, password)) { return(-1); } return(1); }
/// <summary> /// Een bool om de gebruikersnaam en wachtwoord te controleren. /// </summary> /// <param name="username"></param> /// <param name="password"></param> /// <returns></returns> public bool MatchUsernameAndPassword(string username, string password) { return(LoginContext.MatchUsernameAndPassword(username, password)); }