Click or drag to resize

MembershipProvidersServicesChangePassword Method


Changes password of specified user account

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<ChangePasswordOutput> ChangePassword(
	string providerName,
	string userName,
	string oldpassword,
	string newpassword
)

Parameters

providerName
Type: SystemString
Name of membership provider for given user account
userName
Type: SystemString
User Account Id
oldpassword
Type: SystemString
Current password for given user
newpassword
Type: SystemString
New password for given user

Return Value

Type: XHRServiceResponseGenericChangePasswordOutput

The password change result, and requirements from Membership Provider on password format

Examples
Sample JSON return
JavaScript
{
    PasswordChanged: true,
    MinPasswordLength: 8,
    MinNonAlphaNumericCharactersLength: 2
}
s
Remarks
Not all Membership Providers implements "ChangePassword" method. If not, this operation will thrown "NotImplemented" exception into error response format.
See Also