Merge: - auth: fix logic with --glinet argument
* commit '177404d15720bc275f356977f991a188c9ba933a': - auth: fix logic with --glinet argument
This commit is contained in:
commit
2d7be0a1e0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue