forked from mrlan/EnglishPal
main.py: fix bug300: http://118.25.96.118/bugzilla/show_bug.cgi?id=300
parent
3c588e55c5
commit
02a5d4bd47
|
@ -451,6 +451,7 @@ def signup():
|
|||
session['logged_in'] = True
|
||||
session[username] = username
|
||||
session['username'] = username
|
||||
session['expiry_date'] = get_expiry_date(username)
|
||||
return '<p>恭喜,你已成功注册, 你的用户名是 <a href="%s">%s</a>。</p>\
|
||||
<p><a href="/%s">开始使用</a> <a href="/">返回首页</a><p/>' % (username, username, username)
|
||||
else:
|
||||
|
@ -493,4 +494,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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue