Skip to content

Commit

Permalink
ignore user auth for web client root /
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchen2k committed Jan 30, 2024
1 parent e41099e commit 88ea1a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/core/middleware/userAuth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package middleware
import (
"fmt"
v1 "github.com/aaronchen2k/deeptest/cmd/server/v1/domain"
"github.com/aaronchen2k/deeptest/internal/pkg/config"

integrationDomain "github.com/aaronchen2k/deeptest/integration/domain"
"github.com/aaronchen2k/deeptest/integration/enum"
Expand Down Expand Up @@ -36,7 +37,7 @@ func init() {
}

func isIgnore(path string) bool {
if path == "/" { // static client
if config.CONFIG.System.SysEnv == "" {
return true
}

Expand Down

0 comments on commit 88ea1a9

Please sign in to comment.