diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-09-05 20:57:58 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-09-05 20:57:58 +0800 |
commit | e3591a2fd1c05bf394ca7ba5702210ec3c536ade (patch) | |
tree | 5aad1fa66eb9da0a703152068d44e751b17489d8 /app/main.py | |
parent | d463e5715c2bf26be01c033d7a225fcd39776590 (diff) |
Diffstat (limited to 'app/main.py')
-rw-r--r-- | app/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py index b2145cb..301d1bb 100644 --- a/app/main.py +++ b/app/main.py @@ -452,6 +452,8 @@ def signup(): session['logged_in'] = True
session[username] = username
session['username'] = username
+ session['expiry_date'] = get_expiry_date(username)
+ session['articleID'] = None
return '<p>恭喜,你已成功注册, 你的用户名是 <a href="%s">%s</a>。</p>\
<p><a href="/%s">开始使用</a> <a href="/">返回首页</a><p/>' % (username, username, username)
else:
@@ -494,4 +496,3 @@ if __name__ == '__main__': app.run(debug=True)
#app.run(debug=True, port='6000')
#app.run(host='0.0.0.0', debug=True, port='6000')
-
|