summaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-12-09 09:24:34 +0100
committerbugreport%peshkin.net <>2002-12-09 09:24:34 +0100
commitd297f88d022f45e4d6341e7eca49049a4947cd8f (patch)
tree9a8e4388fda40b9d75bcc74b4ddd8cdc9b144e98 /createaccount.cgi
parent2e6c635d3fb541baa8ed376c2c09a99bc6844dcb (diff)
downloadbugzilla-d297f88d022f45e4d6341e7eca49049a4947cd8f.tar.gz
bugzilla-d297f88d022f45e4d6341e7eca49049a4947cd8f.tar.xz
Bug 86029 create permission restrictions for createaccount.cgi (prevent people from creating accounts)
r=burnus a=justdave
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index 37776a780..4ce347fcf 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -69,6 +69,13 @@ if (defined($login)) {
|| ThrowTemplateError($template->error());
exit;
}
+
+ my $createexp = Param('createemailregexp');
+ if (!($createexp)
+ || ($login !~ /$createexp/)) {
+ ThrowUserError("account_creation_disabled");
+ exit;
+ }
# Create account
my $password = InsertNewUser($login, $realname);