Share via


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)

Syntax

'Declaration
Public MustOverride Function GeneratePasswordResetToken ( _
    userName As String, _
    tokenExpirationInMinutesFromNow As Integer _
) As String
'Usage
Dim instance As ExtendedMembershipProvider 
Dim userName As String 
Dim tokenExpirationInMinutesFromNow As Integer 
Dim returnValue As String 

returnValue = instance.GeneratePasswordResetToken(userName, _
    tokenExpirationInMinutesFromNow)
public abstract string GeneratePasswordResetToken(
    string userName,
    int tokenExpirationInMinutesFromNow
)
public:
virtual String^ GeneratePasswordResetToken(
    String^ userName, 
    int tokenExpirationInMinutesFromNow
) abstract
abstract GeneratePasswordResetToken : 
        userName:string * 
        tokenExpirationInMinutesFromNow:int -> string
public abstract function GeneratePasswordResetToken(
    userName : String, 
    tokenExpirationInMinutesFromNow : int
) : String

Parameters

  • tokenExpirationInMinutesFromNow
    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.

See Also

Reference

ExtendedMembershipProvider Class

GeneratePasswordResetToken Overload

WebMatrix.WebData Namespace