CodeGarten.Data.Access.AuthenticationManager.Authenticate C# (CSharp) Méthode

Authenticate() public méthode

public Authenticate ( string user, string passwordPlainText ) : bool
user string
passwordPlainText string
Résultat bool
        public bool Authenticate(string user, string passwordPlainText)
        {
            var userObj = _dbManager.User.Get(user);
            if (user == null) throw new Exception();

            return userObj.Credential == EncryptPassword(passwordPlainText);
        }