PATCH /utils/me/password
Update own password.
Updates the password for the currently authenticated user after verifying their existing credentials.
Endpoint
PATCH /utils/me/password
Parameters
| Name | Type | Description |
|---|---|---|
| session | SessionDep | The database session dependency used for persisting the new password hash. |
| body | UpdatePassword | The request body containing the current and new password strings. |
| current_user | CurrentUser | The currently authenticated user object retrieved from the security context. |
Request Body
| Field | Type | Description |
|---|---|---|
| current_password | string | The user's existing password used for identity verification. |
| new_password | string | The new password to be set for the account, which must differ from the current password. |
Response
| Status | Description |
|---|---|
| 200 | Password updated successfully Returns Message. |
| 400 | Returned if the current password is incorrect or if the new password is identical to the current one Returns null. |