mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[enh] Fix SSO path
This commit is contained in:
parent
32fe07a39f
commit
22f0d518ce
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue