新增 消息定时推送功能
This commit is contained in:
@@ -29,6 +29,7 @@ def login():
|
||||
|
||||
if username == server.username and password == server.password:
|
||||
session['logged_in'] = True
|
||||
session['username'] = username # 存储用户名到session
|
||||
return redirect(url_for('main.index'))
|
||||
else:
|
||||
error = '用户名或密码错误'
|
||||
|
||||
Reference in New Issue
Block a user