summaryrefslogtreecommitdiff
path: root/FS/FS
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 /FS/FS
parente9b2a0d4a388aeb876560aa243d4b9d90ba8c84b (diff)
fix per-agent portal branding on logout, RT#32139
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm5
1 files changed, 3 insertions, 2 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
}
}