From b1852f7bcf92915c3ee0dc4f1711ff2831dd37ee Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 6 Apr 2026 19:37:17 +0800 Subject: [PATCH] Fix accessing username in authentication.py --- gns3server/api/routes/controller/dependencies/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/api/routes/controller/dependencies/authentication.py b/gns3server/api/routes/controller/dependencies/authentication.py index ff89d1d0d..abd746ce1 100644 --- a/gns3server/api/routes/controller/dependencies/authentication.py +++ b/gns3server/api/routes/controller/dependencies/authentication.py @@ -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