feat: improve on data privacy

This commit is contained in:
2025-03-16 12:40:50 +01:00
parent 2500a8d293
commit 641ae50265
2 changed files with 6 additions and 2 deletions

View File

@@ -283,7 +283,7 @@ async def change_password(
async def read_player_me(
current_user: Annotated[Player, Depends(get_current_active_user)],
):
return current_user
return current_user.model_dump(exclude={"hashed_password", "disabled"})
async def read_own_items(