Exemple #1
0
        public bool CanLogin(string login, byte[] password)
        {
            using (SHA256 mySHA256 = SHA256.Create())
            {
                byte[] hashValue = mySHA256.ComputeHash(password);
                password = hashValue;

                return(_authDao.CanLogin(login, password));
            }
        }
Exemple #2
0
 public bool CanLogin(string user, string password)
 {
     return(_authDao.CanLogin(user, password));
 }