summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-05-20 04:35:48 +0200
committerlpsolit%gmail.com <>2005-05-20 04:35:48 +0200
commit5136f3867c9cd853a362f20fc6074fc770c7f88b (patch)
tree78542c7c5df6b0a8ad03d7d191ce724c14d3fc9f
parent620f4ea2be07398a1d0f10293d413c06c44034cf (diff)
downloadbugzilla-5136f3867c9cd853a362f20fc6074fc770c7f88b.tar.gz
bugzilla-5136f3867c9cd853a362f20fc6074fc770c7f88b.tar.xz
Bug 294778: Unable to create new accounts when requirelogin is on - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
-rwxr-xr-xcreateaccount.cgi3
1 files changed, 2 insertions, 1 deletions
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')) {