mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 17:19:06 +01:00
disabled auth by default (when no JWT secret is specified)
This commit is contained in:
@@ -90,7 +90,7 @@ func LogoutHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func RequireAuth(next http.HandlerFunc) http.HandlerFunc {
|
||||
if common.IsDebugSkipAuth {
|
||||
if common.IsDebugSkipAuth || common.APIJWTSecret == nil {
|
||||
return next
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user