mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Merge pull request #136 from YunoHost/fix_sso_botton_in_subdomain
Allow access in portail in other domain than main domain
This commit is contained in:
commit
8100c57da6
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ end
|
||||||
-- If the URL matches the portal URL, serve a portal file or proceed to a
|
-- If the URL matches the portal URL, serve a portal file or proceed to a
|
||||||
-- portal operation
|
-- portal operation
|
||||||
--
|
--
|
||||||
if ngx.var.host == conf["portal_domain"]
|
if (ngx.var.host == conf["portal_domain"] or hlp.is_logged_in())
|
||||||
and hlp.string.starts(ngx.var.uri, string.sub(conf["portal_path"], 1, -2))
|
and hlp.string.starts(ngx.var.uri, string.sub(conf["portal_path"], 1, -2))
|
||||||
then
|
then
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue