示例#1
0
 public string Hash(UserLogInInfo userLogin) =>
 _passwordHasher.HashPassword(userLogin, userLogin.Password);
示例#2
0
 public bool Verify(UserLogInInfo userLogin, string passwordHash)
 {
     return(_passwordHasher
            .VerifyHashedPassword(userLogin, passwordHash, userLogin.Password) != PasswordVerificationResult.Failed);
 }