UserManager<TUser>.GeneratePasswordResetTokenAsync(TUser) Method

Definition

Generates a password reset token for the specified user, using the configured password reset token provider.

C#
public virtual System.Threading.Tasks.Task<string> GeneratePasswordResetTokenAsync (TUser user);

Parameters

user
TUser

The user to generate a password reset token for.

Returns

The Task that represents the asynchronous operation, containing a password reset token for the specified user.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0