Merge pull request #360 from kdsun/dev

Dev
This commit is contained in:
bjdgyc
2025-04-08 11:18:21 +08:00
committed by GitHub
9 changed files with 14232 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ func authMiddleware(next http.Handler) http.Handler {
route := mux.CurrentRoute(r)
name := route.GetName()
// fmt.Println("bb", r.URL.Path, name)
if utils.InArrStr([]string{"login", "index", "static"}, name) {
if utils.InArrStr([]string{"login", "index", "static", "reset_password", "forgot_password"}, name) {
// 不进行鉴权
next.ServeHTTP(w, r)
return