Ejemplo n.º 1
0
        private bool IsLoginCredentialsValid(string inputPassword, User userEntity)
        {
            string hash;
            string salt;

            (hash, salt) = userEntity is not null?passwordHasher.GetPassAndSalt(userEntity.PasswordHash) : (string.Empty, string.Empty);

            return(userEntity is not null && passwordHasher.VerifyHashedPassword(hash, salt, inputPassword));
        }