diff options
author | bugreport%peshkin.net <> | 2002-12-09 08:24:34 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2002-12-09 08:24:34 +0000 |
commit | d297f88d022f45e4d6341e7eca49049a4947cd8f (patch) | |
tree | 9a8e4388fda40b9d75bcc74b4ddd8cdc9b144e98 /createaccount.cgi | |
parent | Bug 159627 quips should be editable and deleteable using the web interface (diff) | |
download | bugzilla-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-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); |