mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
do not reauth if we are already logged in
This commit is contained in:
parent
24b3f7dc3a
commit
720e35df4e
1 changed files with 18 additions and 16 deletions
|
@ -249,6 +249,7 @@ end
|
|||
-- via cURL for example.
|
||||
--
|
||||
|
||||
if not is_logged_in then
|
||||
local auth_header = ngx.req.get_headers()["Authorization"]
|
||||
|
||||
if auth_header then
|
||||
|
@ -270,6 +271,7 @@ if auth_header then
|
|||
return hlp.pass()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--
|
||||
-- 5. Specific files (used in YunoHost)
|
||||
|
|
Loading…
Reference in a new issue