Commit b57e5e38 authored by Frédéric Buclin's avatar Frédéric Buclin

Fix regression due to bug 325315: immediately display an error message when…

Fix regression due to bug 325315: immediately display an error message when account creation is disabled
parent dc3e779d
...@@ -48,6 +48,7 @@ elsif (defined($login)) { ...@@ -48,6 +48,7 @@ elsif (defined($login)) {
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());
} }
else { else {
$user->check_account_creation_enabled;
# Show the standard "would you like to create an account?" form. # Show the standard "would you like to create an account?" form.
$template->process('account/create.html.tmpl', $vars) $template->process('account/create.html.tmpl', $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());
......
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