Commit a1d40e5a authored by timeless%mozdev.org's avatar timeless%mozdev.org

Bug 254758 creating an account that doesn't match the create email regexp should…

Bug 254758 creating an account that doesn't match the create email regexp should not say "New accounts must be created by an administrator." r=lpsolit a=lpsolit
parent 4db8f6e2
......@@ -64,7 +64,7 @@ if (defined($login)) {
$vars->{'login'} = $login;
if ($login !~ /$createexp/) {
ThrowUserError("account_creation_disabled");
ThrowUserError("account_creation_restricted");
}
# Create and send a token for this new account.
......
......@@ -48,9 +48,18 @@
[% error_message = BLOCK %]
[% IF error == "account_creation_disabled" %]
[% title = "Account Creation Disabled" %]
User account creation has been disabled or restricted.
User account creation has been disabled.
<hr>
New accounts must be created by an administrator.
New accounts must be created by an administrator. The
maintainer is [% Param("maintainer") %].
[% ELSIF error == "account_creation_restricted" %]
[% title = "Account Creation Restricted" %]
User account creation has been restricted.
<hr>
Contact your administrator or the maintainer
([% Param("maintainer") %]) for information about
creating an account.
[% ELSIF error == "account_disabled" %]
[% title = "Account Disabled" %]
......
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