is_logged_in is false at the beginning of the refresh function

This commit is contained in:
Kay0u 2020-12-24 10:20:29 +01:00
parent 50db509330
commit 73c5524518
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -232,6 +232,7 @@ function refresh_logged_in()
local authHash = ngx.var.cookie_SSOwAuthHash local authHash = ngx.var.cookie_SSOwAuthHash
authUser = nil authUser = nil
is_logged_in = false
if expireTime and expireTime ~= "" if expireTime and expireTime ~= ""
and authHash and authHash ~= "" and authHash and authHash ~= ""
@ -254,13 +255,12 @@ function refresh_logged_in()
else else
authUser = user authUser = user
end end
return is_logged_in
end end
end end
end end
end end
return false return is_logged_in
end end
-- If client set the `Proxy-Authorization` header before reaching the SSO, -- If client set the `Proxy-Authorization` header before reaching the SSO,