Sets a new password with the token from the reset email. All sessions of the user end.
HTTP
POST /auth/reset-passwordAccess: No token needed.
Request body #
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
token | string | yes | The token from the link in the email. |
password | string | yes | The new password. At least 8 characters. |
Response 204 #
The password is changed and every session of the user is ended. There is no body.
Errors #
| Status | error | When |
|---|---|---|
| 410 | invalid_or_expired_token | The token is unknown, already used or older than an hour. |
| 422 | invalid_request | password is too_short (shorter than the minimum of the organisation, at least 8) or too_weak (the organisation requires upper case, lower case and a digit). |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.