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
)
Public Function ChangePassword (
providerName As String,
userName As String,
oldpassword As String,
newpassword As String
) As XHRServiceResponseGeneric(Of ChangePasswordOutput)
public:
virtual XHRServiceResponseGeneric<ChangePasswordOutput^>^ ChangePassword(
String^ providerName,
String^ userName,
String^ oldpassword,
String^ newpassword
) sealed
abstract ChangePassword :
providerName : string *
userName : string *
oldpassword : string *
newpassword : string -> XHRServiceResponseGeneric<ChangePasswordOutput>
override ChangePassword :
providerName : string *
userName : string *
oldpassword : string *
newpassword : string -> XHRServiceResponseGeneric<ChangePasswordOutput>
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:
XHRServiceResponseGenericChangePasswordOutputThe password change result, and requirements from Membership Provider on password format
Examples
Sample JSON return
{
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