BugFix300 #16

Merged
mrlan merged 6 commits from BugFix300 into master 2021-09-05 20:52:32 +08:00
1 changed files with 2 additions and 1 deletions

View File

@ -452,6 +452,8 @@ def signup():
session['logged_in'] = True session['logged_in'] = True
session[username] = username session[username] = username
session['username'] = username session['username'] = username
session['expiry_date'] = get_expiry_date(username)
session['articleID'] = None
return '<p>恭喜,你已成功注册, 你的用户名是 <a href="%s">%s</a>。</p>\ return '<p>恭喜,你已成功注册, 你的用户名是 <a href="%s">%s</a>。</p>\
<p><a href="/%s">开始使用</a> <a href="/">返回首页</a><p/>' % (username, username, username) <p><a href="/%s">开始使用</a> <a href="/">返回首页</a><p/>' % (username, username, username)
else: else:
@ -494,4 +496,3 @@ if __name__ == '__main__':
app.run(debug=True) app.run(debug=True)
#app.run(debug=True, port='6000') #app.run(debug=True, port='6000')
#app.run(host='0.0.0.0', debug=True, port='6000') #app.run(host='0.0.0.0', debug=True, port='6000')