From: Ivan Kohler Date: Sun, 5 Jan 2014 09:43:50 +0000 (-0800) Subject: fix login with an existing session cookie, RT#25533 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=98b36380fd09ade523de7046e0c67e3e9b35de03 fix login with an existing session cookie, RT#25533 --- diff --git a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi index 13723118c..f84f5d633 100755 --- a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi +++ b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi @@ -105,7 +105,7 @@ unless ( $nologin_actions{$action} ) { my %cookies = CGI::Cookie->fetch; - my $login_rv; + my $login_rv = {}; if ( exists($cookies{'session'}) ) { @@ -178,10 +178,7 @@ unless ( $nologin_actions{$action} ) { } # else session_id ne 'login' - } else { - # there is no session cookie - $login_rv = {}; - } + } # else there is no session cookie if ( !$session_id ) { # XXX why are we getting agentnum from a CGI param? surely it should