ExtendedMembershipProvider.GeneratePasswordResetToken Method (String)

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 virtual string GeneratePasswordResetToken(
	string userName


Type: System.String
The user name.

Return Value

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

The token expires 24 hours after it is generated.

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