aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-12-09 08:24:34 +0000
committerbugreport%peshkin.net <>2002-12-09 08:24:34 +0000
commitd297f88d022f45e4d6341e7eca49049a4947cd8f (patch)
tree9a8e4388fda40b9d75bcc74b4ddd8cdc9b144e98 /createaccount.cgi
parentBug 159627 quips should be editable and deleteable using the web interface (diff)
downloadbugzilla-d297f88d022f45e4d6341e7eca49049a4947cd8f.tar.gz
bugzilla-d297f88d022f45e4d6341e7eca49049a4947cd8f.tar.bz2
bugzilla-d297f88d022f45e4d6341e7eca49049a4947cd8f.zip
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);