From 8aecbb99677613611aeed1bb5ea4393e5a6be92d Mon Sep 17 00:00:00 2001 From: Kload Date: Thu, 17 Oct 2013 19:34:51 +0200 Subject: [PATCH] Logout redirect URL --- access.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/access.lua b/access.lua index 5a5f199..91a3a45 100644 --- a/access.lua +++ b/access.lua @@ -142,9 +142,13 @@ function display_login_form () if args.action and args.action == 'logout' then if check_cookie() then + local redirect_url = portal_url + if args.r then + redirect_url = ngx.decode_base64(args.r) + end local user = ngx.var.cookie_SSOwAuthUser logout[user] = {} - logout[user]["redirect_url"] = portal_url + logout[user]["redirect_url"] = redirect_url logout[user]["domains"] = {} for _, value in ipairs(conf["domains"]) do table.insert(logout[user]["domains"], value)