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: 9.0.565.0 (9.0.565)
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: XHRServiceResponseGenericResetPasswordOutputThe password reset status
Examples
JavaScript
{ "code": 0, "error": null, "message": { "EmailError": null, "EmailSent": true, "ErrorCode": null, "ErrorMessage": null, "Newpassword": null, "ResetSuccessful": true } }
Examples
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