From fb95ff2861ffc0c20dcb75ada7a032351149d1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 5 Jun 2025 11:23:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E5=90=8E=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=AE=89=E5=85=A8=E5=85=A5=E5=8F=A3404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/middleware/entrance.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/http/middleware/entrance.go b/internal/http/middleware/entrance.go index 3558bdc6..bb934da8 100644 --- a/internal/http/middleware/entrance.go +++ b/internal/http/middleware/entrance.go @@ -79,7 +79,6 @@ func Entrance(t *gotext.Locale, conf *koanf.Koanf, session *sessions.Manager) fu // 情况二:请求路径与入口路径相同或者未设置访问入口,标记通过验证并重定向到登录页面 if (strings.TrimSuffix(r.URL.Path, "/") == entrance || entrance == "/") && - sess.Missing("verify_entrance") && r.Header.Get("Authorization") == "" { sess.Put("verify_entrance", true) render := chix.NewRender(w, r)