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)
Syntax
'Declaration
Public Overridable Function GeneratePasswordResetToken ( _
userName As String _
) As String
'Usage
Dim instance As ExtendedMembershipProvider
Dim userName As String
Dim returnValue As String
returnValue = instance.GeneratePasswordResetToken(userName)
public virtual string GeneratePasswordResetToken(
string userName
)
public:
virtual String^ GeneratePasswordResetToken(
String^ userName
)
abstract GeneratePasswordResetToken :
userName:string -> string
override GeneratePasswordResetToken :
userName:string -> string
public function GeneratePasswordResetToken(
userName : String
) : String
Parameters
- userName
Type: System.String
The user name.
Return Value
Type: System.String
A token to send to the user.
Remarks
The token expires 24 hours after it is generated.
See Also
Reference
ExtendedMembershipProvider Class