summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortimeless%mozdev.org <>2007-07-24 04:52:49 +0200
committertimeless%mozdev.org <>2007-07-24 04:52:49 +0200
commita1d40e5a33fe1cae729b5c7b7e77a54b4ab17271 (patch)
treec6be8712bea200808f4cec70f13e5e00b0e2d4f1
parent4db8f6e2cfcaad4cad3b33e85659e416395eba67 (diff)
downloadbugzilla-a1d40e5a33fe1cae729b5c7b7e77a54b4ab17271.tar.gz
bugzilla-a1d40e5a33fe1cae729b5c7b7e77a54b4ab17271.tar.xz
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
-rwxr-xr-xcreateaccount.cgi2
-rw-r--r--template/en/default/global/user-error.html.tmpl13
2 files changed, 12 insertions, 3 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index 1f372fe7e..1ec7ec31d 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 3f82c1c92..79817e881 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.
<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" %]