Esempio n. 1
0
        public bool UserPasswordCheck(string email, string password)
        {
            var userPassword        = _context.Users.Single(u => u.Email == email).Password;
            var dbHashBytesPassword = Convert.FromBase64String(userPassword);

            return(PasswordHasher.DecryptPassword(userPassword, password));
        }