Users
Reset user password
Changed onResets the password for a user identified by email. Protected by resetPasswordMiddleware (validates reset token/permission). Password is hashed via bcrypt before storage.
post/users/reset-password
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/users/reset-password
- Authnone declared
Request body
Example request
{
"email": "user@example.com",
"newPassword": "NewSecure123!"
}Response
Password reset successfully
Example response
{
"message": "Accepted",
"data": {
"id": 1,
"name": "John",
"surname": "Doe",
"email": "john@example.com",
"role_id": 1,
"organization_id": 1
}
}Changes
- breaking
the response property
/became nullable for the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
api operation id
resetPasswordwas added - info
api tag
Usersadded - info
api tag
Users - Passwordremoved
- info