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 表示密碼雜湊比較的結果。

備註

這個方法的實作應該保持時間一致。

適用於