[Mod]修改token生成的字符串

This commit is contained in:
vn.py 2018-01-27 19:06:52 +08:00
parent 915a4bfcb0
commit 0b5d0a928c

View File

@ -40,7 +40,7 @@ with open("WEB_setting.json") as f:
setting = json.load(f) setting = json.load(f)
USERNAME = setting['username'] USERNAME = setting['username']
PASSWORD = setting['password'] PASSWORD = setting['password']
TOKEN = base64.encodestring(TODAY+PASSWORD) TOKEN = base64.encodestring(TODAY+PASSWORD).replace('\n', '')
# 创建Flask对象 # 创建Flask对象