mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-28 19:22:22 +02:00
Fix accessing username in authentication.py
This commit is contained in:
parent
4cf8b79692
commit
b1852f7bcf
@ -114,7 +114,7 @@ async def get_current_active_user_from_websocket(
|
|||||||
if not user.is_active:
|
if not user.is_active:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_401_UNAUTHORIZED,
|
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
|
return user
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user