From fdb13e8257d7517a71b31b3fbf2778291696ec70 Mon Sep 17 00:00:00 2001 From: xiaoQQya <46475319+xiaoQQya@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=8A=B6=E6=80=81=20/login=20=E6=9C=AA=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=B7=B3=E8=BD=AC=20(#58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/run.py b/app/run.py index e94092d..ae22fe1 100644 --- a/app/run.py +++ b/app/run.py @@ -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)