typos and stuff

This commit is contained in:
Thies Mueller 2021-01-09 23:04:44 +01:00
parent 735d507dff
commit c2aa8e392a
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ $result = $statement->execute(array('userid' => $userid));
$user = $statement->fetch(); $user = $statement->fetch();
//check if theres a code for the user delivered //check if theres a code for the user delivered
if($user === null || $user['actuvationcode'] === null) { if($user === null || $user['activationcode'] === null) {
die('<div class="alert alert-danger" role="alert"> die('<div class="alert alert-danger" role="alert">
No User matching your request.</div>'); No User matching your request.</div>');
} }

View File

@ -48,7 +48,7 @@ if(isset($_GET['send']) ) {
$mailrcpt = $user['email']; $mailrcpt = $user['email'];
$mailsubject = "Activate the Account of ".$user['username']; $mailsubject = "Activate the Account of ".$user['username'];
$from = "From: Account Activation Service <activatemyaccount@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/activate.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:
'.$url_activationcode.' '.$url_activationcode.'