[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 is_logged_in() then
if string.match(ngx.var.uri, "^/ynhpanel.js$") then if string.match(ngx.var.uri, "^/ynhpanel.js$") then
serve("/ynhsso/assets/js/ynhpanel.js") serve("/yunohost/sso/assets/js/ynhpanel.js")
end end
if string.match(ngx.var.uri, "^/ynhpanel.css$") then if string.match(ngx.var.uri, "^/ynhpanel.css$") then
serve("/ynhsso/assets/css/ynhpanel.css") serve("/yunohost/sso/assets/css/ynhpanel.css")
end end
if string.match(ngx.var.uri, "^/ynhpanel.json$") then if string.match(ngx.var.uri, "^/ynhpanel.json$") then
serve("/ynhsso/assets/js/ynhpanel.json") serve("/yunohost/sso/assets/js/ynhpanel.json")
end end
if not has_access() then if not has_access() then
return redirect(portal_url) return redirect(portal_url)