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.

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:

{
    "notification": null,
    "warning": null,
    "variables": null,
    "internalStatus": "000000",
    "response": {
        "resendCodeLockTime": 60,
        "tempIdLifeTime": 600,
        "tempId": "6dc8d495-510e-4961-8297-3c533612ed51"
    },
    "errors": null
}

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.

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 notifications

Do confirmation

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

Use this 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:

{
    "notification": "reset.success",
    "warning": null,
    "variables": null,
    "internalStatus": "502",
    "response": [],
    "errors": null
}

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

  • 429 - Too many attempts.

  • 422 - Expired code

  • 422 - Invalid code

  • 422 - Invalid tempId

Last updated

#20:

Change request updated