ExtendedMembershipProvider.GeneratePasswordResetToken ExtendedMembershipProvider.GeneratePasswordResetToken ExtendedMembershipProvider.GeneratePasswordResetToken Method

Definition

Overloads

GeneratePasswordResetToken(String, Int32) GeneratePasswordResetToken(String, Int32) GeneratePasswordResetToken(String, Int32)

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

GeneratePasswordResetToken(String) GeneratePasswordResetToken(String) GeneratePasswordResetToken(String)

Generates a password reset token that can be sent to a user in email.

GeneratePasswordResetToken(String, Int32) GeneratePasswordResetToken(String, Int32) GeneratePasswordResetToken(String, Int32)

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

public abstract string GeneratePasswordResetToken (string userName, int tokenExpirationInMinutesFromNow);
abstract member GeneratePasswordResetToken : string * int -> string
Public MustOverride Function GeneratePasswordResetToken (userName As String, tokenExpirationInMinutesFromNow As Integer) As String

Parameters

userName
String String String

The user name.

tokenExpirationInMinutesFromNow
Int32 Int32 Int32

(Optional) The time, in minutes, until the password reset token expires. The default is 1440 (24 hours).

Returns

A token to send to the user.

GeneratePasswordResetToken(String) GeneratePasswordResetToken(String) GeneratePasswordResetToken(String)

Generates a password reset token that can be sent to a user in email.

public virtual string GeneratePasswordResetToken (string userName);
abstract member GeneratePasswordResetToken : string -> string
override this.GeneratePasswordResetToken : string -> string
Public Overridable Function GeneratePasswordResetToken (userName As String) As String

Parameters

userName
String String String

The user name.

Returns

A token to send to the user.

Applies to