From e782ea5979fa9cb636828253b0edc1909984f4af Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 22 Oct 2021 15:46:49 +0200 Subject: [PATCH] Controllers: Switch password reset to Tx/Mailer due to required auth --- app/classes/Mail.php | 2 +- app/controllers/LoginController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/classes/Mail.php b/app/classes/Mail.php index ec1a378..a314392 100644 --- a/app/classes/Mail.php +++ b/app/classes/Mail.php @@ -42,7 +42,7 @@ class Mail { return mail($to, $subject, $message, $headers); } - public static function sendMail(string $subject, string $message, string $from = '', string $to = ''): bool + public static function sendMail(string $subject, string $message, string $to = '', string $from = ''): bool { if ($to == '') { $to = self::$to; diff --git a/app/controllers/LoginController.php b/app/controllers/LoginController.php index b2d9e43..1d20779 100644 --- a/app/controllers/LoginController.php +++ b/app/controllers/LoginController.php @@ -151,7 +151,7 @@ class LoginController extends PageController { $resetUrl "; - if (Mail::send($subject, $message, $user->email)) { + if (Mail::sendMail($subject, $message, $user->email)) { $this->setAlert('success', 'Successfully requested password reset.'); } else {