Merge: - auth: fix logic with --glinet argument

* commit '177404d15720bc275f356977f991a188c9ba933a':
  - auth: fix logic with --glinet argument
This commit is contained in:
Andrey Meshkov 2020-07-16 10:52:07 +03:00
commit 2d7be0a1e0
1 changed files with 1 additions and 0 deletions

View File

@ -395,6 +395,7 @@ func optionalAuth(handler func(http.ResponseWriter, *http.Request)) func(http.Re
if glProcessCookie(r) { if glProcessCookie(r) {
log.Debug("Auth: authentification was handled by GL-Inet submodule") log.Debug("Auth: authentification was handled by GL-Inet submodule")
ok = true
} else if err == nil { } else if err == nil {
r := Context.auth.CheckSession(cookie.Value) r := Context.auth.CheckSession(cookie.Value)