reset_password_perform

To finish the password reset procedure, use the core/reset_password_perform method.

Copied!
svc=core/reset_password_perform&params={
    "user": <text>,
    "code": <text>
}

Parameters

After the execution of the core/reset_password_request method, an email with a link is sent to the user. The link leads to the URL indicated in the request and contains two parameters needed to finish the password reset:

Name Description
user User name.
code The code generated by the core/reset_password_request method and sent to the user by email. The code is valid for 2 hours.

Response

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

Copied!
{
    "newPassword": <text>   /* New password. */
}

If the request fails, an error code is returned.

Error codes

Error code Description
4 Wrong input parameters or failed to finish the password reset.

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