Click or drag to resize

MembershipProvidersServicesChangePassword Method


Changes password of specified user account

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

Parameters

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

Return Value

XHRServiceResponseGenericChangePasswordOutput

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

Example
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