diff --git a/signup/index.php b/signup/index.php index 8d94175..eaf867e 100644 --- a/signup/index.php +++ b/signup/index.php @@ -27,12 +27,12 @@ include __DIR__."/../header.php";

what interests you about tilde.club? we want to make sure you're a real human being :)

- +

SSH public key

- +

if you don't have a key, don't worry! check out our guide to ssh keys and make sure that you only put your pubkey here

diff --git a/signup/signup-handler.php b/signup/signup-handler.php index 4465653..7a752d5 100644 --- a/signup/signup-handler.php +++ b/signup/signup-handler.php @@ -97,18 +97,20 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { // no validation errors if ($message == "") { + $makeuser = "makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$_REQUEST["sshkey"]}\""; $msgbody = " username: {$_REQUEST["username"]} email: {$_REQUEST["email"]} reason: {$_REQUEST["interest"]} -makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$_REQUEST["sshkey"]}\" +$makeuser "; if (mail('root', 'new tilde.club signup', $msgbody)) { echo ''; + file_put_contents("/var/signups", $makeuser.PHP_EOL, FILE_APPEND); } else { echo '