]> 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:40:22 +0000 (02:40 +0000)
committerlpsolit%gmail.com <>
Fri, 20 May 2005 02:40:22 +0000 (02:40 +0000)
createaccount.cgi

index f6eb1f23c8a2544f117a3f070996b6f5a8bb27af..ddd5a83318f213868ffe71f9cd660a74070d2eea 100755 (executable)
@@ -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) {