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.
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.
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