mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Dont't set header but serve ynhpanel
This commit is contained in:
parent
b1080c1e1a
commit
ef3d6af9e0
1 changed files with 4 additions and 3 deletions
|
@ -318,11 +318,12 @@ end
|
||||||
|
|
||||||
if longest_unprotected_match ~= ""
|
if longest_unprotected_match ~= ""
|
||||||
and string.len(longest_unprotected_match) > string.len(longest_protected_match) then
|
and string.len(longest_unprotected_match) > string.len(longest_protected_match) then
|
||||||
if hlp.is_logged_in() and hlp.has_access() then
|
if hlp.is_logged_in() then
|
||||||
serveYnhpanel()
|
serveYnhpanel()
|
||||||
|
if hlp.has_access() then
|
||||||
hlp.set_headers()
|
hlp.set_headers()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
logger.debug(ngx.var.uri.." is in unprotected_urls")
|
logger.debug(ngx.var.uri.." is in unprotected_urls")
|
||||||
return hlp.pass()
|
return hlp.pass()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue