Commit 97ddcf71 authored by shenshuo's avatar shenshuo

添加用户信息的常量

parent 176362d6
......@@ -49,7 +49,7 @@ class BaseHandler(RequestHandler):
user_info = jwt.decode(auth_key, verify=False).get('data')
if not user_info:
raise HTTPError(401, 'auth failed')
self.user_id = user_info.get('user_id', None)
self.username = user_info.get('username', None)
self.nickname = user_info.get('nickname', None)
......
......@@ -112,6 +112,8 @@ const.DOMAIN = "dysmsapi.aliyuncs.com"
### app settings
const.APP_SETTINGS = 'APP_SETTINGS'
### all user info
const.USERS_INFO = 'USERS_INFO'
##### API GW
const.WEBSITE_API_GW_URL = 'WEBSITE_API_GW_URL'
const.EMAILLOGIN_DOMAIN = 'EMAILLOGIN_DOMAIN'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment