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: - manager (Microsoft.AspNetCore.Identity.UserManager<TUser>) – The
Microsoft.AspNetCore.Identity.UserManager`1
to retrieve the <em>user</em> properties from. - user (TUser) – The user whose password should be validated.
- password (System.String) – The password supplied for validation
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)
- manager (Microsoft.AspNetCore.Identity.UserManager<TUser>) – The
-