MSDN Library

ExtendedMembershipProvider.GeneratePasswordResetToken Method (String, Int32)

When overridden in a derived class, generates a password reset token that can be sent to a user in email.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

public abstract string GeneratePasswordResetToken(
	string userName,
	int tokenExpirationInMinutesFromNow


Type: System.String
The user name.
Type: System.Int32
(Optional) The time, in minutes, until the password reset token expires. The default is 1440 (24 hours).

Return Value

Type: System.String
A token to send to the user.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
© 2016 Microsoft