diff --git a/app/classes/web/websocket_handler.py b/app/classes/web/websocket_handler.py index 1f0c2db5..2cfe7074 100644 --- a/app/classes/web/websocket_handler.py +++ b/app/classes/web/websocket_handler.py @@ -43,7 +43,7 @@ class SocketHandler(tornado.websocket.WebSocketHandler): def get_user_id(self): _, _, user = authentication.check(self.get_cookie('token')) - return user.user_id + return user['user_id'] def check_auth(self): return authentication.check_bool(self.get_cookie('token'))