require "CGI.pl";
+use Bugzilla::Constants;
+
# Shut up misguided -w warnings about "used only once":
use vars qw(
$template
# 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) {