Fix accessing username in authentication.py

This commit is contained in:
grossmj 2026-04-06 19:37:17 +08:00
parent 4cf8b79692
commit b1852f7bcf
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -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