PasswordHasher<TUser>.VerifyHashedPassword 方法

定义

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

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

参数

user
TUser

应验证其密码的用户。

hashedPassword
String

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

providedPassword
String

提供用于比较的密码。

返回

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

实现

注解

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

适用于