UserManager<TUser>.ValidatePasswordAsync(TUser, String) UserManager<TUser>.ValidatePasswordAsync(TUser, String) UserManager<TUser>.ValidatePasswordAsync(TUser, String) Method

Definition

Should return Success if validation is successful. This is called before updating the password hash.

protected System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidatePasswordAsync (TUser user, string password);
member this.ValidatePasswordAsync : 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Protected Function ValidatePasswordAsync (user As TUser, password As String) As Task(Of IdentityResult)

Parameters

user
TUser TUser TUser

The user.

password
String String String

The password.

Returns

A IdentityResult representing whether validation was successful.

Applies to