Sdílet prostřednictvím


PasswordHasher<TUser>.VerifyHashedPassword Metoda

Definice

PasswordVerificationResult Vrátí výsledek porovnání hodnot hash hesel.

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

Parametry

user
TUser

Uživatel, jehož heslo se má ověřit.

hashedPassword
String

Hodnota hash uloženého hesla uživatele

providedPassword
String

Heslo zadané pro porovnání.

Návraty

A PasswordVerificationResult označující výsledek porovnání hodnot hash hesel.

Implementuje

Poznámky

Implementace této metody by měly být časově konzistentní.

Platí pro