Skip to content

Conversation

@floscodes
Copy link

@floscodes floscodes commented Sep 11, 2025

This PR provides an endpoint to update the data of a logged in user

Update current user

To update user data in the database, send name, email and password to update in the /update endpoint.
It will also be checked if the new username and email already exist. If so, an error will be returned.

Example Curl request:
curl --location '127.0.0.1:5150/api/auth/update' \
     --header 'Content-Type: application/json' \
     --header 'Authorization: Bearer TOKEN'
     --data '{
         "name": "new-name",
         "email": "[email protected]",
         "password": "new-password"
     }'

@floscodes
Copy link
Author

Hi @kaplanelad, after a few errors occurred, I’ve made some fixes in this PR. Could you please trigger the CI tests again? Thank you! 🙏

@kaplanelad
Copy link
Contributor

Hey,
This PR includes many changes that don’t seem related to its purpose.
Please make sure that only the relevant changes are included in the PR.

@floscodes floscodes force-pushed the feat/update-user-data-endpoint branch from cdab821 to 66003b6 Compare October 20, 2025 09:04
@floscodes
Copy link
Author

Hi @kaplanelad ,
I’ve implemented the update-user-data endpoint and reverted the formatting changes. Should be ready for review — does this look okay now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants