some minor changes so that the mail sends as "activation" not "password reset"

This commit is contained in:
Thies Mueller 2021-01-09 22:55:15 +01:00
parent 410fe452b7
commit 735d507dff

View File

@ -46,8 +46,8 @@ if(isset($_GET['send']) ) {
$result = $statement->execute(array('activationcode' => sha1($activationcode), 'userid' => $user['id'])); $result = $statement->execute(array('activationcode' => sha1($activationcode), 'userid' => $user['id']));
$mailrcpt = $user['email']; $mailrcpt = $user['email'];
$mailsubject = "New password for your User"; $mailsubject = "Activate the Account of ".$user['username'];
$from = "From: Password Reset Service <resetmypw@loginpagefoo.td00.de>"; //place a real address if we use this in production $from = "From: Account Activation Service <activatemyaccount@loginpagefoo.td00.de>"; //place a real address if we use this in production
$url_activationcode = 'https://loginpagefoo.td00.de/resetpass.php?userid='.$user['id'].'&code='.$activationcode; //this shouldnt be my domain in prod.. $url_activationcode = 'https://loginpagefoo.td00.de/resetpass.php?userid='.$user['id'].'&code='.$activationcode; //this shouldnt be my domain in prod..
$text = 'Hallo '.$user['username'].', $text = 'Hallo '.$user['username'].',
please use the following URL to activate your account in the next 24h: please use the following URL to activate your account in the next 24h: