IPasswordHasher<TUser>.VerifyHashedPassword 方法

定义

返回一个 PasswordVerificationResult 指示密码哈希比较的结果。

public:
 Microsoft::AspNetCore::Identity::PasswordVerificationResult VerifyHashedPassword(TUser user, System::String ^ hashedPassword, System::String ^ providedPassword);
public Microsoft.AspNetCore.Identity.PasswordVerificationResult VerifyHashedPassword (TUser user, string hashedPassword, string providedPassword);
abstract member VerifyHashedPassword : 'User * string * string -> Microsoft.AspNetCore.Identity.PasswordVerificationResult
Public Function VerifyHashedPassword (user As TUser, hashedPassword As String, providedPassword As String) As PasswordVerificationResult

参数

user
TUser

应验证其密码的用户。

hashedPassword
String

用户的存储密码的哈希值。

providedPassword
String

提供用于比较的密码。

返回

PasswordVerificationResult

指示 PasswordVerificationResult 密码哈希比较的结果。

注解

此方法的实现应保持时间一致。

适用于