diff --git a/app/main.py b/app/main.py index d23c272..a7e731f 100644 --- a/app/main.py +++ b/app/main.py @@ -451,6 +451,7 @@ def signup(): session['logged_in'] = True session[username] = username session['username'] = username + session['expiry_date'] = get_expiry_date(username) return '
恭喜,你已成功注册, 你的用户名是 %s。
\ ' % (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') -