IPasswordHasher<TUser>.VerifyHashedPassword Method

Definition

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

C#
public Microsoft.AspNetCore.Identity.PasswordVerificationResult VerifyHashedPassword (TUser user, string hashedPassword, string providedPassword);

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

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0