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:
Alexandre Aubin 2019-05-22 17:43:56 +02:00 committed by GitHub
commit 8100c57da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ end
-- If the URL matches the portal URL, serve a portal file or proceed to a
-- 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))
then