From a6b11a8096ce6d7e4d8adb8dee8fd6f5237ab3f3 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 6 Jan 2025 23:30:23 +0100 Subject: [PATCH] add update other informations --- app/routers/users.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routers/users.py b/app/routers/users.py index 2aec5d2..b252f4a 100644 --- a/app/routers/users.py +++ b/app/routers/users.py @@ -146,6 +146,9 @@ async def update_users_me(current_user: Annotated[users.User, Depends(users_toke if len(userSingle.password) > 0: current_user.password = user_token.get_password_hash(userSingle.password) current_user.email = userSingle.email + current_user.name = userSingle.name + current_user.firstName = userSingle.firstName + current_user.birth = userSingle.birth user_repository.save(current_user) content = {"message": "user is updated"} response = JSONResponse(content=content) -- 2.47.1