Xsolla-logo

Confirm password resetClient-side

post/password/reset/confirm

Confirms the user password reset.

You can reset user password if you use Login widget forms or your own password reset forms. If you use your own forms, contact your Customer Success Manager and specify the URL of your password reset form.

The workflow of using this call with your own forms:

  1. The application opens a form so the user can enter their email or username.
  2. The user enters their email or username.
  3. The application sends the Reset password request to the Xsolla Login server.
  4. The Xsolla Login server sends a confirmation email to the user.
  5. The user follows the link in the email and proceeds to the form for setting a new password.
  6. The user enters a new password and clicks Set new password.
  7. The application or Login widget sends this request to the Xsolla Login server.
Request
query Parameters
projectId
required
string <uuid>

Login project ID from Publisher Account.

Request Body schema: application/json
new_password
required
string [ 6 .. 100 ] characters

New user password.

reset_code
required
string

Code to verify the user who changes the password. Is generated by the Xsolla Login server and passed to the URL of the password reset form.

user_id
string <uuid>

User ID. Is passed to the URL of the password reset form. Required.

verify_code
string

Additional verify code. Uses with Custom Storage for extra validation of password reset request on partner side

Responses
204

No Content

400

Bad Request

404

Not Found

422

Unprocessable Entity

Request samples
application/json
{
  • "new_password": "password1230",
  • "reset_code": "ABJ8UKuTvNILBAEdfiKIpgHtiz6teYVPXMBFdpaw5mI",
  • "user_id": "1a9c23f5-d1dc-4d8e-afbe-6a6bac6464eb"
}
Response samples
{
  • "error": {
    }
}