UserManager<TUser>.ChangePasswordAsync(TUser, String, String) Metodo

Definizione

Modifica la password di un utente dopo aver confermato che l'oggetto specificato currentPassword è corretto, come operazione asincrona.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ChangePasswordAsync(TUser user, System::String ^ currentPassword, System::String ^ newPassword);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ChangePasswordAsync (TUser user, string currentPassword, string newPassword);
abstract member ChangePasswordAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ChangePasswordAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ChangePasswordAsync (user As TUser, currentPassword As String, newPassword As String) As Task(Of IdentityResult)

Parametri

user
TUser

Utente la cui password deve essere impostata.

currentPassword
String

Password corrente da convalidare prima della modifica.

newPassword
String

Nuova password da impostare per l'oggetto specificato user.

Restituisce

Oggetto Task che rappresenta l'operazione asincrona contenente l'oggetto IdentityResult dell'operazione.

Si applica a