From cfc22fd3235fd19566152ed9eb4280f58f9926c6 Mon Sep 17 00:00:00 2001 From: "kiko%async.com.br" <> Date: Thu, 27 Nov 2003 09:00:59 +0000 Subject: Bug 226324: Move relogin.cgi code to Bugzilla::Auth::CGI. Provide a logout() method that is proxied through Bugzilla.pm's logout(), and fix callers to use it. r=justdave, bbaetz, a=justdave --- createaccount.cgi | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'createaccount.cgi') diff --git a/createaccount.cgi b/createaccount.cgi index cce598ac9..22b8129e9 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -47,15 +47,11 @@ unless (Bugzilla::Auth->can_edit) { ThrowUserError("auth_cant_create_account"); } -my $cgi = Bugzilla->cgi; - # Clear out the login cookies. Make people log in again if they create an # account; otherwise, they'll probably get confused. -$cgi->send_cookie(-name => 'Bugzilla_login', - -expires => 'Tue, 15-Sep-1998 21:49:00 GMT'); -$cgi->send_cookie(-name => 'Bugzilla_logincookie', - -expires => 'Tue, 15-Sep-1998 21:49:00 GMT'); +Bugzilla->logout(); +my $cgi = Bugzilla->cgi; print $cgi->header(); my $login = $::FORM{'login'}; -- cgit v1.2.3-24-g4f1b