Controllers: Switch password reset to Tx/Mailer due to required auth

This commit is contained in:
Riyyi
2021-10-22 15:46:49 +02:00
parent 9a99c31d47
commit e782ea5979
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class Mail {
return mail($to, $subject, $message, $headers); 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 == '') { if ($to == '') {
$to = self::$to; $to = self::$to;
+1 -1
View File
@@ -151,7 +151,7 @@ class LoginController extends PageController {
<a href='$resetUrl'>$resetUrl</a> <a href='$resetUrl'>$resetUrl</a>
"; ";
if (Mail::send($subject, $message, $user->email)) { if (Mail::sendMail($subject, $message, $user->email)) {
$this->setAlert('success', 'Successfully requested password reset.'); $this->setAlert('success', 'Successfully requested password reset.');
} }
else { else {