From 6fef95f63049f5cce2d433991276bf9f0841de19 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 23 Jul 2019 16:55:43 -0600 Subject: [PATCH] Fix verification email bug --- public/parts/verify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/parts/verify.php b/public/parts/verify.php index cfc0013..e10c233 100644 --- a/public/parts/verify.php +++ b/public/parts/verify.php @@ -34,14 +34,14 @@ if (!empty($_POST['email'])) { try { $verification = new Email(); - $verification->addTo($SETTINGS["smtp"]["notification_to"]); + $verification->addTo(strtolower($_POST['email'])); $verification->setFrom($SETTINGS["smtp"]["fromaddress"], $SETTINGS["smtp"]["fromname"]); $verification->setSMTP($SETTINGS["smtp"]["host"], $SETTINGS["smtp"]["port"], $SETTINGS["smtp"]["auth"], $SETTINGS["smtp"]["user"], $SETTINGS["smtp"]["password"], $SETTINGS["smtp"]["secure"]); $verification->setSubject("HACHE email verification"); $verification->setBody("The verification code for renewing your HACHE membership is $code."); $verification->send(); } catch (Exception $e) { - + die("There was a problem sending the verification email. Try again later."); } } else if (!empty($_POST['code'])) { if (empty($_SESSION['code'])) {