MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / isAnonymousAuthPath

Function isAnonymousAuthPath

core/middleware/session.go:61–75  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

59}
60
61func isAnonymousAuthPath(path string) bool {
62 switch path {
63 case "/api/v2/core/auth/captcha",
64 "/api/v2/core/auth/passkey/begin",
65 "/api/v2/core/auth/passkey/finish",
66 "/api/v2/core/auth/mfalogin",
67 "/api/v2/core/auth/login",
68 "/api/v2/core/auth/logout",
69 "/api/v2/core/auth/setting",
70 "/api/v2/core/auth/welcome":
71 return true
72 default:
73 return false
74 }
75}

Callers 1

SessionAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected