UserManager<TUser>.ValidatePasswordAsync(TUser, String) Méthode

Définition

Doit retourner Success si la validation réussit. Cette opération est appelée avant la mise à jour du hachage du mot de passe.

protected:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ValidatePasswordAsync(TUser user, System::String ^ password);
protected System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidatePasswordAsync (TUser user, string password);
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)

Paramètres

user
TUser

L’utilisateur.

password
String

Mot de passe.

Retours

IdentityResult représentant si la validation a réussi.

S’applique à