From: timeless%mozdev.org <> Date: Tue, 24 Jul 2007 02:52:49 +0000 (+0000) Subject: Bug 254758 creating an account that doesn't match the create email regexp should... X-Git-Tag: bugzilla-3.1.2~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1d40e5a33fe1cae729b5c7b7e77a54b4ab17271;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/createaccount.cgi b/createaccount.cgi index 1f372fe7e1..1ec7ec31d1 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -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. diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 3f82c1c92c..79817e881d 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -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.
- 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. +
+ Contact your administrator or the maintainer + ([% Param("maintainer") %]) for information about + creating an account. [% ELSIF error == "account_disabled" %] [% title = "Account Disabled" %]