summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-11-18 21:01:38 -0800
committerIvan Kohler <ivan@freeside.biz>2014-11-18 21:01:38 -0800
commit36b23802990dc9220661ce118788893fce71f71d (patch)
treec06a7561382e01e0a84c3258486f8243a0855771
parente9b2a0d4a388aeb876560aa243d4b9d90ba8c84b (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 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>