From 177404d15720bc275f356977f991a188c9ba933a Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Thu, 16 Jul 2020 10:15:26 +0300 Subject: [PATCH] - auth: fix logic with --glinet argument --- home/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/home/auth.go b/home/auth.go index 3166052b..36e56d05 100644 --- a/home/auth.go +++ b/home/auth.go @@ -395,6 +395,7 @@ func optionalAuth(handler func(http.ResponseWriter, *http.Request)) func(http.Re if glProcessCookie(r) { log.Debug("Auth: authentification was handled by GL-Inet submodule") + ok = true } else if err == nil { r := Context.auth.CheckSession(cookie.Value)