From e3591a2fd1c05bf394ca7ba5702210ec3c536ade Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sun, 5 Sep 2021 20:57:58 +0800 Subject: Fix bug 300: http://118.25.96.118/bugzilla/show_bug.cgi?id=300 --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/main.py') 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 '

恭喜,你已成功注册, 你的用户名是 %s

\

开始使用 返回首页

' % (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') - -- cgit v1.2.1