public bool CanLogin(string login, byte[] password) { using (SHA256 mySHA256 = SHA256.Create()) { byte[] hashValue = mySHA256.ComputeHash(password); password = hashValue; return(_authDao.CanLogin(login, password)); } }
public bool CanLogin(string user, string password) { return(_authDao.CanLogin(user, password)); }