mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
is_logged_in is false at the beginning of the refresh function
This commit is contained in:
parent
50db509330
commit
73c5524518
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue