Fix accessing username in authentication.py

This commit is contained in:
grossmj committed 2026-04-06 19:37:17 +08:00
1 parent 4cf8b79692
commit b1852f7bcf
1 file changed
+1 -1
@@ -114,7 +114,7 @@ async def get_current_active_user_from_websocket(
if not user.is_active:
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail=f"'{username}' is not an active user"
detail=f"'{token_data.username}' is not an active user"
)
return user