Reset password

1. Get feature in Postman collection

2. Reset password

Do reset

Everything is easy in this step. You need send 1 field in body of request - email.

circle-info

In Postman, each endpoint includes some response cases (HTTP: 200,422 …). So you can see result of work using different input client data.

Success case:

To confirm reset, you need send some code, which system generated. Let’s explain some attributes:

  • tempId - Temporary id of user, which will be use in next step. A temporary reset confirmation code is associated with this key.

  • tempIdLifeTime - Temporary id life time (in seconds). So, this code will be expire after 10 minutes.

  • resendCodeLockTime - How often you can do resend/regenerate confirmation code.

circle-info

Project doesn’t use email clients. Instead I developed own notification system, which in your account. All confirmation codes and other info, will be showing on this page. Open my notificationsarrow-up-right

Do confirmation

Now, we need to confirm reset with code, which got from page of notifications.

Use thisarrow-up-right request. Let’s see arguments of body:

  • tempId - string from past response

  • code - 6 digits number from page of notifications

If all are correct, you will be success response:

You can also get other answers (see Postman) like:

  • 429 - Too many attempts.

  • 422 - Expired code

  • 422 - Invalid code

  • 422 - Invalid tempId

Last updated