IPasswordValidator<TUser> Interface

Provides an abstraction for validating passwords.

Namespace
Microsoft.AspNetCore.Identity
Assemblies
  • Microsoft.AspNetCore.Identity

Syntax

public interface IPasswordValidator<TUser>
    where TUser : class
interface Microsoft.AspNetCore.Identity.IPasswordValidator<TUser>

Methods

ValidateAsync(Microsoft.AspNetCore.Identity.UserManager<TUser>, TUser, System.String)

Validates a password as an asynchronous operation.

Arguments:
Return type:

System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>

Returns:

The task object representing the asynchronous operation.

Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string password)