Commit 5136f386 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 294778: Unable to create new accounts when requirelogin is on - Patch by…

Bug 294778: Unable to create new accounts when requirelogin is on - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
parent 620f4ea2
......@@ -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')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment