[enh] Fix SSO path

This commit is contained in:
kload 2014-05-14 15:27:34 +00:00
parent 32fe07a39f
commit 22f0d518ce

View file

@ -829,13 +829,13 @@ end
if is_logged_in() then
if string.match(ngx.var.uri, "^/ynhpanel.js$") then
serve("/ynhsso/assets/js/ynhpanel.js")
serve("/yunohost/sso/assets/js/ynhpanel.js")
end
if string.match(ngx.var.uri, "^/ynhpanel.css$") then
serve("/ynhsso/assets/css/ynhpanel.css")
serve("/yunohost/sso/assets/css/ynhpanel.css")
end
if string.match(ngx.var.uri, "^/ynhpanel.json$") then
serve("/ynhsso/assets/js/ynhpanel.json")
serve("/yunohost/sso/assets/js/ynhpanel.json")
end
if not has_access() then
return redirect(portal_url)