diff --git a/home/auth.go b/home/auth.go index 82918f78..a2d6d5f2 100644 --- a/home/auth.go +++ b/home/auth.go @@ -381,10 +381,9 @@ func optionalAuth(handler func(http.ResponseWriter, *http.Request)) func(http.Re } } else if strings.HasPrefix(r.URL.Path, "/assets/") || - strings.HasPrefix(r.URL.Path, "/login.") || - strings.HasPrefix(r.URL.Path, "/__locales/") { + strings.HasPrefix(r.URL.Path, "/login.") { // process as usual - + // no additional auth requirements } else if Context.auth != nil && Context.auth.AuthRequired() { // redirect to login page if not authenticated ok := false diff --git a/home/control.go b/home/control.go index 310b9f20..744fc327 100644 --- a/home/control.go +++ b/home/control.go @@ -188,7 +188,7 @@ func postInstall(handler func(http.ResponseWriter, *http.Request)) func(http.Res if Context.firstRun && !strings.HasPrefix(r.URL.Path, "/install.") && - r.URL.Path != "/favicon.png" { + !strings.HasPrefix(r.URL.Path, "/assets/") { http.Redirect(w, r, "/install.html", http.StatusFound) return }