forked from team/site
1
0
Fork 0

update reserved names, add command shortcut for makeuser

This commit is contained in:
Ben Harris 2018-09-24 14:28:47 -04:00
parent 0b9ca08a95
commit 6478856997
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ require __DIR__.'/../vendor/autoload.php';
if ($_SERVER["SERVER_NAME"] != "localhost")
require_once "/home/ben/ultimate-email/support/smtp.php";
$reserved_names = ['git', 'irc', 'mail', 'pad', 'sudo', 'root', 'admin', 'postmaster', 'paste', 'quotes'];
$reserved_names = ['git', 'irc', 'mail', 'sudo', 'root', 'admin', 'postmaster', 'retro', 'lounge', '0x0', 'auth', 'bbj', 'gopher'];
$message = "";
if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
@ -43,6 +43,8 @@ contact email: {$_REQUEST["email"]}
reason: {$_REQUEST["interest"]}
ssh key:
{$_REQUEST["sshkey"]}
sudo ./makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$_REQUEST["sshkey"]}\"
";
if (mail('sudoers', 'new tilde.team signup', $msgbody, "Reply-To: {$_REQUEST["email"]}")) {