Compare commits

..

No commits in common. "16949c83d79cffc058e6176993717f671792fb5b" and "e5128a91824b39e636bdf9fe8ce3546701458a59" have entirely different histories.

View File

@ -145,6 +145,7 @@ async def update_users_me(current_user: Annotated[users.User, Depends(users_toke
current_user.username = userSingle.username
if len(userSingle.password) > 0:
current_user.password = user_token.get_password_hash(userSingle.password)
current_user.roles = userSingle.roles
current_user.email = userSingle.email
user_repository.save(current_user)
content = {"message": "user is updated"}