Click or drag to resize

MembershipProvidersServicesResetPassword Method


Resets an integrated User's password on its Membership Provider. Also, an email is sent to target user to provide the temporary password.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<ResetPasswordOutput> ResetPassword(
	string providerName,
	string userName
)

Parameters

providerName
Type: SystemString
Name of the Membership Provider for given user
userName
Type: SystemString
User Name (Id)

Return Value

Type: XHRServiceResponseGenericResetPasswordOutput

The password reset status

Examples
Sample JSON return - Email successful
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "EmailError": null,
        "EmailSent": true,
        "ErrorCode": null,
        "ErrorMessage": null,
        "Newpassword": null,
        "ResetSuccessful": true
    }
}
Examples
Sample JSON return - Email failed, this will include email error and return the new password.
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "EmailError": "The parameter 'from' cannot be an empty string.\u000d\u000aParameter name: from",,
        "EmailSent": true,
        "ErrorCode": null,
        "ErrorMessage": null,
        "Newpassword": "letmein",
        "ResetSuccessful": true
    }
}
See Also