Export (0) Print
Expand All

ExtendedMembershipProvider.ResetPasswordWithToken Method

When overridden in a derived class, resets a password after verifying that the specified password reset token is valid.

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

'Declaration
Public MustOverride Function ResetPasswordWithToken ( _
	token As String, _
	newPassword As String _
) As Boolean
'Usage
Dim instance As ExtendedMembershipProvider 
Dim token As String 
Dim newPassword As String 
Dim returnValue As Boolean 

returnValue = instance.ResetPasswordWithToken(token, _
	newPassword)

Parameters

token
Type: System.String
A password reset token.
newPassword
Type: System.String
The new password.

Return Value

Type: System.Boolean
true if the password was changed; otherwise, false.

The password is changed only if the password reset token is valid.

Show:
© 2014 Microsoft