mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-13 15:50:45 +08:00
🐛 修复登录状态 /login 未自动跳转 (#58)
This commit is contained in:
parent
13244e1dcf
commit
c660217b50
@ -129,6 +129,8 @@ def login():
|
||||
logging.info(f">>> 用户 {username} 登录失败")
|
||||
return render_template("login.html", message="登录失败")
|
||||
|
||||
if is_login():
|
||||
return redirect(url_for("index"))
|
||||
return render_template("login.html", error=None)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user