mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Fix condition on optional Referer header
This commit is contained in:
parent
e55c63f28d
commit
ce819a24ac
1 changed files with 2 additions and 2 deletions
|
@ -592,8 +592,8 @@ then
|
||||||
elseif is_logged_in() -- Authenticated
|
elseif is_logged_in() -- Authenticated
|
||||||
or ngx.var.uri == conf["portal_path"] -- OR Want to serve portal login
|
or ngx.var.uri == conf["portal_path"] -- OR Want to serve portal login
|
||||||
or (string.starts(ngx.var.uri, conf["portal_path"].."assets")
|
or (string.starts(ngx.var.uri, conf["portal_path"].."assets")
|
||||||
and ngx.var.http_referer
|
and (not ngx.var.http_referer
|
||||||
and string.starts(ngx.var.http_referer, portal_url)) -- OR Want to serve assets for portal login
|
or string.starts(ngx.var.http_referer, portal_url))) -- OR Want to serve assets for portal login
|
||||||
then
|
then
|
||||||
-- Serve normal portal
|
-- Serve normal portal
|
||||||
return serve(ngx.var.uri)
|
return serve(ngx.var.uri)
|
||||||
|
|
Loading…
Reference in a new issue