Share via


IPasswordHasher<TUser>.VerifyHashedPassword Method

Definition

Returns a PasswordVerificationResult indicating the result of a password hash comparison.

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

Parameters

user
TUser

The user whose password should be verified.

hashedPassword
String

The hash value for a user's stored password.

providedPassword
String

The password supplied for comparison.

Returns

A PasswordVerificationResult indicating the result of a password hash comparison.

Remarks

Implementations of this method should be time consistent.

Applies to