MembershipProvidersServicesChangePassword Method
|
Changes password of specified user account
Namespace: IngeniuxCMServiceAssembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntaxpublic 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 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
XHRServiceResponseGenericChangePasswordOutputThe password change result, and requirements from Membership Provider on password format
Example
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