Fix a websocket handler bug

This commit is contained in:
luukas 2022-01-15 17:38:29 +02:00
parent a20f7c4acf
commit 351c386c17

View File

@ -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'))