Partager via


UserManager<TUser>.VerifyPasswordAsync Méthode

Définition

Retourne un PasswordVerificationResult indiquant le résultat d’une comparaison de hachage de mot de passe.

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::PasswordVerificationResult> ^ VerifyPasswordAsync(Microsoft::AspNetCore::Identity::IUserPasswordStore<TUser> ^ store, TUser user, System::String ^ password);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult> VerifyPasswordAsync (Microsoft.AspNetCore.Identity.IUserPasswordStore<TUser> store, TUser user, string password);
abstract member VerifyPasswordAsync : Microsoft.AspNetCore.Identity.IUserPasswordStore<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult>
override this.VerifyPasswordAsync : Microsoft.AspNetCore.Identity.IUserPasswordStore<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult>
Protected Overridable Function VerifyPasswordAsync (store As IUserPasswordStore(Of TUser), user As TUser, password As String) As Task(Of PasswordVerificationResult)

Paramètres

store
IUserPasswordStore<TUser>

Magasin contenant le mot de passe d’un utilisateur.

user
TUser

Utilisateur dont le mot de passe doit être vérifié.

password
String

Mot de passe à vérifier.

Retours

Task qui représente l’opération asynchrone, contenant le PasswordVerificationResult de l’opération .

S’applique à