From f81ae9d5c5bbada21cfafc4f82a1c0bce0124a47 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 28 Nov 2023 19:59:13 +0100 Subject: [PATCH] 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? --- access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.lua b/access.lua index bd6dedc..5c5aac9 100644 --- a/access.lua +++ b/access.lua @@ -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()