]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 254758 creating an account that doesn't match the create email regexp should...
authortimeless%mozdev.org <>
Tue, 24 Jul 2007 02:52:49 +0000 (02:52 +0000)
committertimeless%mozdev.org <>
Tue, 24 Jul 2007 02:52:49 +0000 (02:52 +0000)
r=lpsolit a=lpsolit

createaccount.cgi
template/en/default/global/user-error.html.tmpl

index 1f372fe7e1b733b26230f544ff7ec04702943eb0..1ec7ec31d167c02975d39c22071bc21c3d131b79 100755 (executable)
@@ -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.
index 3f82c1c92cafb199bea2d622d2716408929ec04f..79817e881d465fd163e1b6846012c6ddfc30df80 100644 (file)
 [% 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" %]