Share via


UserManager<TUser>.ResetPasswordAsync(TUser, String, String) Method

Definition

Resets the user's password to the specified newPassword after validating the given password reset token.

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

Parameters

user
TUser

The user whose password should be reset.

token
String

The password reset token to verify.

newPassword
String

The new password to set if reset token verification succeeds.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

Applies to