reset_password_request

To reset the password, use the core/reset_password_request method.

Copied!
svc=core/reset_password_request&params={
    "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.
email User email.

Response

If the request is completed successfully, a response of the following format is returned:

Copied!
{
    "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:
  • USER_OR_EMAIL_NOT_CORRECT — the user isn’t found, or the specified email doesn’t match the user’s email;
  • PASSWORD_IMMUTABLE — the user can’t change the password (see the 0x02 flag on the update_user_flags page);
  • REQUEST_TOO_OFTEN — less than 60 seconds have passed since the previous request.

If you find a mistake in the text, please select it and press Ctrl+Enter.