Browse Source

优化生成token

peng 11 tháng trước cách đây
mục cha
commit
e73c529f88
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/UIDManageUserController.py

+ 1 - 1
Controller/UIDManageUserController.py

@@ -78,7 +78,7 @@ class UserView(View):
                 return response.json(99)
             else:
                 token = TokenObject()
-                res = token.generate({'userID': user[0].id})
+                res = token.generate(data={'userID': user[0].id})
                 res['permission'] = user[0].permission
                 res['username'] = user[0].username
                 user[0].online = 1