diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-11-18 21:01:38 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-11-18 21:01:38 -0800 |
commit | 36b23802990dc9220661ce118788893fce71f71d (patch) | |
tree | c06a7561382e01e0a84c3258486f8243a0855771 | |
parent | e9b2a0d4a388aeb876560aa243d4b9d90ba8c84b (diff) |
fix per-agent portal branding on logout, RT#32139
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 5 | ||||
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/logout.html | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 61082bd9e..e02378d41 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -308,11 +308,12 @@ sub login { sub logout { my $p = shift; + my $skin_info = skin_info($p); if ( $p->{'session_id'} ) { _cache->remove($p->{'session_id'}); - return { %{ skin_info($p) }, 'error' => '' }; + return { %$skin_info, 'error' => '' }; } else { - return { %{ skin_info($p) }, 'error' => "Can't resume session" }; #better error message + return { %$skin_info, 'error' => "Can't resume session" }; #better error message } } diff --git a/fs_selfservice/FS-SelfService/cgi/logout.html b/fs_selfservice/FS-SelfService/cgi/logout.html index 834ef13f2..540b6c900 100644 --- a/fs_selfservice/FS-SelfService/cgi/logout.html +++ b/fs_selfservice/FS-SelfService/cgi/logout.html @@ -1,6 +1,6 @@ <HTML> <HEAD> - <META HTTP-EQUIV="refresh" CONTENT="5;URL=<%= $cgi->url(-absolute => 1) %>"> + <META HTTP-EQUIV="refresh" CONTENT="5;URL=<%= $cgi->url(-absolute => 1). "?agentnum=$agentnum" %>"> <TITLE>MyAccount</TITLE> <%= $head %> </HEAD> |