更新 app.py

This commit is contained in:
2023-12-23 17:25:13 +08:00
parent 97a56e0e2f
commit 4c8d30da70

View File

@@ -44,6 +44,9 @@ def valid_login(username, password):
# 假设用户名是admin且密码是secret
return username == 'admin' and password == '1'
@app.route('/forget', methods=['GET', 'POST'])
def forget_page():
return render_template('forget.html')
@app.route('/home')
def home():
if 'username' in session: