Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
c22af013fd | |||
a6b11a8096 | |||
16949c83d7 | |||
5b347a020a |
@ -145,8 +145,10 @@ async def update_users_me(current_user: Annotated[users.User, Depends(users_toke
|
|||||||
current_user.username = userSingle.username
|
current_user.username = userSingle.username
|
||||||
if len(userSingle.password) > 0:
|
if len(userSingle.password) > 0:
|
||||||
current_user.password = user_token.get_password_hash(userSingle.password)
|
current_user.password = user_token.get_password_hash(userSingle.password)
|
||||||
current_user.roles = userSingle.roles
|
|
||||||
current_user.email = userSingle.email
|
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)
|
user_repository.save(current_user)
|
||||||
content = {"message": "user is updated"}
|
content = {"message": "user is updated"}
|
||||||
response = JSONResponse(content=content)
|
response = JSONResponse(content=content)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user