hotfix auth checks

This commit is contained in:
Mukhtar Akere
2025-02-13 02:20:45 +01:00
parent 14341d30bc
commit 6f4f72d781

View File

@@ -100,6 +100,11 @@ func (ui *Handler) authMiddleware(next http.Handler) http.Handler {
return
}
if !cfg.UseAuth {
next.ServeHTTP(w, r)
return
}
// Skip auth check for setup page
if r.URL.Path == "/setup" {
next.ServeHTTP(w, r)