UserManager<TUser>.GeneratePasswordResetTokenAsync(TUser) UserManager<TUser>.GeneratePasswordResetTokenAsync(TUser) UserManager<TUser>.GeneratePasswordResetTokenAsync(TUser) Method

Definition

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

public virtual System.Threading.Tasks.Task<string> GeneratePasswordResetTokenAsync (TUser user);
abstract member GeneratePasswordResetTokenAsync : 'User -> System.Threading.Tasks.Task<string>
override this.GeneratePasswordResetTokenAsync : 'User -> System.Threading.Tasks.Task<string>
Public Overridable Function GeneratePasswordResetTokenAsync (user As TUser) As Task(Of String)

Parameters

user
TUser TUser 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