Beispiel #1
0
        public SignInResult TrySignInWithPassword(User user, string password)
        {
            if (user.Password == null)
            {
                throw new ArgumentNullException(nameof(user));
            }
            var hash = user.Password.Hash;

            return(!_passwordHasher.VerifyPassword(password, hash) ? SignInResult.Failed() : SignInResult.Success);
        }