]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 294778: Unable to create new accounts when requirelogin is on - Patch by Frédéric...
authorlpsolit%gmail.com <>
Fri, 20 May 2005 02:35:48 +0000 (02:35 +0000)
committerlpsolit%gmail.com <>
Fri, 20 May 2005 02:35:48 +0000 (02:35 +0000)
createaccount.cgi

index c89de38199e08342c8bbf7885f3aa67f390221e1..9d9f55d8ad78cebbbd2776fb06cfae0a942d6561 100755 (executable)
@@ -30,6 +30,7 @@ use lib qw(.);
 
 require "CGI.pl";
 
+use Bugzilla::Constants;
 use Bugzilla::User;
 
 # Shut up misguided -w warnings about "used only once":
@@ -41,7 +42,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('new')) {