diff options
author | bugreport%peshkin.net <> | 2002-12-09 09:24:34 +0100 |
---|---|---|
committer | bugreport%peshkin.net <> | 2002-12-09 09:24:34 +0100 |
commit | d297f88d022f45e4d6341e7eca49049a4947cd8f (patch) | |
tree | 9a8e4388fda40b9d75bcc74b4ddd8cdc9b144e98 /createaccount.cgi | |
parent | 2e6c635d3fb541baa8ed376c2c09a99bc6844dcb (diff) | |
download | bugzilla-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-x | createaccount.cgi | 7 |
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); |