Share via


SPClaimsAuthMembershipProvider.ChangePassword method

Updates the password for a membership user.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function ChangePassword ( _
    name As String, _
    oldPwd As String, _
    newPwd As String _
) As Boolean
'Usage
Dim instance As SPClaimsAuthMembershipProvider
Dim name As String
Dim oldPwd As String
Dim newPwd As String
Dim returnValue As Boolean

returnValue = instance.ChangePassword(name, _
    oldPwd, newPwd)
public override bool ChangePassword(
    string name,
    string oldPwd,
    string newPwd
)

Parameters

  • name
    Type: System.String

    The user for which the password is updated.

Return value

Type: System.Boolean
true if the password is updated successfully; otherwise, false.

Remarks

If the user can be found and the password is correct, this override updates the password for the specified user in the membership provider that is not an SPClaimsAuthMembershipProvider, and is used by forms-based authentication in the current application.

See also

Reference

SPClaimsAuthMembershipProvider class

SPClaimsAuthMembershipProvider members

Microsoft.SharePoint.Administration.Claims namespace