Share via


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)

Syntax

'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)
public abstract bool ResetPasswordWithToken(
    string token,
    string newPassword
)
public:
virtual bool ResetPasswordWithToken(
    String^ token, 
    String^ newPassword
) abstract
abstract ResetPasswordWithToken : 
        token:string * 
        newPassword:string -> bool
public abstract function ResetPasswordWithToken(
    token : String, 
    newPassword : String
) : boolean

Parameters

Return Value

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

Remarks

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

See Also

Reference

ExtendedMembershipProvider Class

WebMatrix.WebData Namespace