mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03: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:
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user