mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix a websocket handler bug
This commit is contained in:
parent
a20f7c4acf
commit
351c386c17
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user