IPasswordValidator<TUser>.ValidateAsync Method

Definition

Validates a password as an asynchronous operation.

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string password);
C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string? password);

Parameters

manager
UserManager<TUser>

The UserManager<TUser> to retrieve the user properties from.

user
TUser

The user whose password should be validated.

password
String

The password supplied for validation

Returns

The task object representing the asynchronous operation.

Applies to

منتج الإصدارات
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