mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Add a query string 'msg=access_denied' when denying access to a logged-in user, such that we may display it nicely on the frontend?
This commit is contained in:
parent
3336464481
commit
f81ae9d5c5
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ else
|
|||
logger:debug("Redirecting to portal : " .. portal_url)
|
||||
|
||||
if is_logged_in then
|
||||
return ngx.redirect(portal_url)
|
||||
return ngx.redirect(portal_url.."?msg=access_denied")
|
||||
else
|
||||
local back_url = "https://" .. ngx.var.host .. ngx.var.uri .. uri_args_string()
|
||||
|
||||
|
|
Loading…
Reference in a new issue