From 60900705412d6512db3eb8bae39da50fc5400a7d Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 1 Mar 2009 23:42:51 +0000 Subject: Bug 121601: Have logout display index.cgi, not just a message on relogin.cgi. Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- relogin.cgi | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'relogin.cgi') diff --git a/relogin.cgi b/relogin.cgi index 9d30d7c11..a5cea5f91 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -37,7 +37,7 @@ use Date::Format; my $template = Bugzilla->template; my $cgi = Bugzilla->cgi; -my $action = $cgi->param('action') || 'logout'; +my $action = $cgi->param('action'); my $vars = {}; my $target; @@ -184,20 +184,6 @@ elsif ($action eq 'end-sudo') { $vars->{'message'} = 'sudo_ended'; $target = 'global/message.html.tmpl'; } -# Log out the currently logged-in user (this used to be the only thing this did) -elsif ($action eq 'logout') { - # We don't want to remove a random logincookie from the db, so - # call Bugzilla->login(). If we're logged in after this, then - # the logincookie must be correct - Bugzilla->login(LOGIN_OPTIONAL); - - $cgi->remove_cookie('sudo'); - - Bugzilla->logout(); - - $vars->{'message'} = "logged_out"; - $target = 'global/message.html.tmpl'; -} # No valid action found else { Bugzilla->login(LOGIN_OPTIONAL); -- cgit v1.2.3-24-g4f1b