IPasswordHasher<TUser>.VerifyHashedPassword Metoda

Definice

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

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

Parametry

user
TUser

Uživatel, jehož heslo by mělo být ověřeno.

hashedPassword
String

Hodnota hash pro uložené heslo uživatele.

providedPassword
String

Heslo zadané pro porovnání.

Návraty

PasswordVerificationResult

Označuje PasswordVerificationResult výsledek porovnání hodnot hash hesel.

Poznámky

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

Platí pro