Controllers: Switch password reset to Tx/Mailer due to required auth
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -151,7 +151,7 @@ class LoginController extends PageController {
|
||||
<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.');
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user