Merge pull request 'add update other informations' (#44) from feature/add-condition into master

Reviewed-on: #44
This commit is contained in:
v4l3n71n 2025-01-06 23:32:39 +01:00
commit c22af013fd

View File

@ -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)