Starting making user adds more automated

This commit is contained in:
Ubergeek 2021-02-27 20:49:07 -05:00
parent fce23c7cd1
commit 0833e91520
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,8 @@ Pubkey: $pubkey";
// In the future, here, we *should* be able to build a process that
// somehow auto-verifies the user, and instead of email, it'll kick off the new user process here
$user_queue = '/dev/shm/userqueue';
// Spam attempt
$success = 'success1';
if ( $tv == "tildeverse" )
@ -42,6 +44,9 @@ if ( $tv == "tildeverse" )
if ( $success == "success2" )
mail($destination_addr, $subject, $mailbody, $from);
$fp = fopen($user_queue, 'a');
fwrite($fp, "'$lowercase','$email','$pubkey'\n");
fclose($fp);
}
header("Location: $site_root/?page=$success");