diff options
author | kiko%async.com.br <> | 2003-11-27 10:00:59 +0100 |
---|---|---|
committer | kiko%async.com.br <> | 2003-11-27 10:00:59 +0100 |
commit | cfc22fd3235fd19566152ed9eb4280f58f9926c6 (patch) | |
tree | a9d44b213ee57e61444bd5f1c47314502f927c54 /createaccount.cgi | |
parent | 44a7b4d9294e1bffff4362fdf4075059b03eb95a (diff) | |
download | bugzilla-cfc22fd3235fd19566152ed9eb4280f58f9926c6.tar.gz bugzilla-cfc22fd3235fd19566152ed9eb4280f58f9926c6.tar.xz |
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
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-x | createaccount.cgi | 8 |
1 files changed, 2 insertions, 6 deletions
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'}; |