From: lpsolit%gmail.com <> Date: Fri, 20 May 2005 02:40:22 +0000 (+0000) Subject: Bug 294778: Unable to create new accounts when requirelogin is on - Patch by Frédéric... X-Git-Tag: bugzilla-2.18.2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=461cbd1b206415d14635f710acc18e853961d296;p=thirdparty%2Fbugzilla.git Bug 294778: Unable to create new accounts when requirelogin is on - Patch by Frédéric Buclin r=wurblzap a=justdave --- 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) {