🐛 修复登录状态 /login 未自动跳转 (#58)

This commit is contained in:
xiaoQQya 2025-02-07 10:29:47 +08:00 committed by GitHub
parent 13244e1dcf
commit c660217b50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)