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
fb910facec
commit
9bd1cbc74b
1 changed files with 4 additions and 3 deletions
|
@ -318,10 +318,11 @@ 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()
|
||||||
|
|
Loading…
Reference in a new issue