- auth: fix logic with --glinet argument

This commit is contained in:
Simon Zolin 2020-07-16 10:15:26 +03:00
parent e46db985e8
commit 177404d157

View File

@ -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)