Share via


UserManager<TUser>.ValidatePasswordAsync(TUser, String) Methode

Definition

Sollte zurückgegeben werden Success , wenn die Überprüfung erfolgreich war. Dies wird vor dem Aktualisieren des Kennworthashs aufgerufen.

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)

Parameter

user
TUser

Den Benutzer.

password
String

Das Kennwort.

Gibt zurück

Ein IdentityResult , der angibt, ob die Validierung erfolgreich war.

Gilt für: