|
@@ -24,9 +24,7 @@ async def connect(sid, environ, auth):
|
|
|
data = decode_token(auth["token"])
|
|
|
|
|
|
if data is not None and "id" in data:
|
|
|
- from apps.webui.internal.db import SessionLocal
|
|
|
-
|
|
|
- user = Users.get_user_by_id(SessionLocal(), data["id"])
|
|
|
+ user = Users.get_user_by_id(data["id"])
|
|
|
|
|
|
if user:
|
|
|
SESSION_POOL[sid] = user.id
|