更新 app.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user