summaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-04-17 15:49:55 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-04-17 15:49:55 +0200
commitb57e5e38913097bed1e9d5e86c42a221cbed6611 (patch)
treebb70a543d7891bd47057d78b41fea9088e0dc4db /createaccount.cgi
parentdc3e779d94ef2be397660f102240d1d9c83d5147 (diff)
downloadbugzilla-b57e5e38913097bed1e9d5e86c42a221cbed6611.tar.gz
bugzilla-b57e5e38913097bed1e9d5e86c42a221cbed6611.tar.xz
Fix regression due to bug 325315: immediately display an error message when account creation is disabled
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index cd5309f05..d4aa511c1 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -48,6 +48,7 @@ elsif (defined($login)) {
|| ThrowTemplateError($template->error());
}
else {
+ $user->check_account_creation_enabled;
# Show the standard "would you like to create an account?" form.
$template->process('account/create.html.tmpl', $vars)
|| ThrowTemplateError($template->error());