1
0
Fork 0

main.py: make sure the key articleID exists.

BugFix300
Lan Hui 2021-09-05 20:51:28 +08:00
parent 91ca6fe33b
commit ffc33852ae
1 changed files with 1 additions and 0 deletions

View File

@ -453,6 +453,7 @@ def signup():
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: