feat: improve on data privacy
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user