UserManager<TUser>.GeneratePasswordResetTokenAsync(TUser) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a password reset token for the specified user
, using
the configured password reset token provider.
public:
virtual System::Threading::Tasks::Task<System::String ^> ^ GeneratePasswordResetTokenAsync(TUser user);
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
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
.