mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Fix accessing username in authentication.py
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user