From 6f4f72d7816630785b044563a3de18b1b3a360b7 Mon Sep 17 00:00:00 2001 From: Mukhtar Akere Date: Thu, 13 Feb 2025 02:20:45 +0100 Subject: [PATCH] hotfix auth checks --- pkg/web/ui.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/web/ui.go b/pkg/web/ui.go index 740de4d..43bb34a 100644 --- a/pkg/web/ui.go +++ b/pkg/web/ui.go @@ -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)