mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
fix: 登录后访问安全入口404
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user