summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-11-18 21:01:39 -0800
committerIvan Kohler <ivan@freeside.biz>2014-11-18 21:01:39 -0800
commiteaa349aa44febf4271b0b16dcffb894f360df834 (patch)
tree04b32a0acd129abf2a7bb04291445507318894ea
parent7df65c63a5c9ad6b79c60841d0e1eb2a7df520e2 (diff)
fix per-agent portal branding on logout, RT#32139
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm5
-rw-r--r--fs_selfservice/FS-SelfService/cgi/logout.html2
2 files changed, 4 insertions, 3 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index af747eb03..7ae7cc36f 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>