From e5408689eb879e3a646b2312f022a9a2a0c8b9b1 Mon Sep 17 00:00:00 2001 From: "Skylar \"The Cobra\" Widulski" Date: Tue, 12 Sep 2023 08:42:59 -0400 Subject: [PATCH] Add registration email to mailing list automatically Signed-off-by: Skylar "The Cobra" Widulski --- en/register.php | 1 + 1 file changed, 1 insertion(+) diff --git a/en/register.php b/en/register.php index 16b1bbf..4344dc2 100644 --- a/en/register.php +++ b/en/register.php @@ -216,6 +216,7 @@ if ($use_xmppo) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' "$password"' . " vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion\n"; if ($use_xmppi) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' "$password"' . " verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p\n"; $contents .= "s-nail -r 'register@vern.cc' -s 'Your ~vern account has been created' -M text/plain " . escapeshellarg($email) . " < <(printf 'Hello %s,\\nYour membership request on ~vern has been accepted.\\nYou can now SSH into vern.cc using the public key(s) that you supplied to ~vern.\\nA global password for all the services you signed up to can be found at ~/pass. If you signed up for Mastodon, password for the account can be found at ~/mastodon-pass\\n\\nThank you for being a part of ~vern!' " . escapeshellarg($username) . ")\n"; + $contents .= "echo " escapeshellarg($email) " >> /var/spool/list\n"; $contents .= "mv $0 /var/log/register/\n"; $contents .= "exit\n\n\n"; $contents .= $reason . "\n";