reset_password_request
To reset the password, use the core/reset_password_request method.
svc=core/reset_password_request¶ms={
"user": <text>,
"url": <text>,
"email": <text>
}
Parameters
| Name | Description |
|---|---|
| user | User name. |
| url | The URL sent in the email after the password reset request: <url>?user=<login>&code=<code>. See the description of the code parameter on the core/reset_password_perform page. |
| User email. |
Response
If the request is completed successfully, a response of the following format is returned:
{
"error": 0 /* Successful request. */
}
If the request fails, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | Wrong input parameters. |
| 11 | See the reason field for details. Possible values:
|