From 461cbd1b206415d14635f710acc18e853961d296 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 20 May 2005 02:40:22 +0000 Subject: [PATCH] =?utf8?q?Bug=20294778:=20Unable=20to=20create=20new=20acc?= =?utf8?q?ounts=20when=20requirelogin=20is=20on=20-=20Patch=20by=20Fr?= =?utf8?q?=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dwurblzap?= =?utf8?q?=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- createaccount.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/createaccount.cgi b/createaccount.cgi index f6eb1f23c8..ddd5a83318 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -30,6 +30,8 @@ use lib qw(.); require "CGI.pl"; +use Bugzilla::Constants; + # Shut up misguided -w warnings about "used only once": use vars qw( $template @@ -39,7 +41,7 @@ use vars qw( # Just in case someone already has an account, let them get the correct footer # on an error message. The user is logged out just before the account is # actually created. -Bugzilla->login(); +Bugzilla->login(LOGIN_OPTIONAL); # If we're using LDAP for login, then we can't create a new account here. unless (Bugzilla::Auth->can_edit) { -- 2.47.2