From 5136f3867c9cd853a362f20fc6074fc770c7f88b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 20 May 2005 02:35:48 +0000 Subject: Bug 294778: Unable to create new accounts when requirelogin is on - Patch by Frédéric Buclin r=wurblzap a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- createaccount.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'createaccount.cgi') diff --git a/createaccount.cgi b/createaccount.cgi index c89de3819..9d9f55d8a 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -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')) { -- cgit v1.2.3-24-g4f1b