PasswordValidator<TUser>.ValidateAsync Method

Definition

Validates a password as an asynchronous operation.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ValidateAsync(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ manager, TUser user, System::String ^ password);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string password);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string? password);
abstract member ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ValidateAsync (manager As UserManager(Of TUser), user As TUser, password As String) As Task(Of IdentityResult)

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.

Implements

Applies to