From 2151563757125e25e9ffc971fdbb1b16774f5f2d Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Fri, 31 Jan 2020 14:15:11 +0300 Subject: [PATCH] + http: allow access to /__locales/ when not authenticated --- home/auth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/auth.go b/home/auth.go index aae40f33..9afe2c87 100644 --- a/home/auth.go +++ b/home/auth.go @@ -379,7 +379,8 @@ func optionalAuth(handler func(http.ResponseWriter, *http.Request)) func(http.Re } } else if r.URL.Path == "/favicon.png" || - strings.HasPrefix(r.URL.Path, "/login.") { + strings.HasPrefix(r.URL.Path, "/login.") || + strings.HasPrefix(r.URL.Path, "/__locales/") { // process as usual } else if config.auth != nil && config.auth.AuthRequired() {