From d5eea54aca319a83a7a3616578365de3171e02cb Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 5 Apr 2024 11:49:13 -0600 Subject: [PATCH] Revert "require new email status style" This reverts commit 4d87a391ad25c45776da6c3b8da54379da922a70. --- blueprints.yaml | 2 +- classes/plugin/Controllers/Login/LoginController.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/blueprints.yaml b/blueprints.yaml index f8b750d6..6550b780 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -18,7 +18,7 @@ dependencies: - { name: grav, version: '>=1.7.42' } - { name: form, version: '>=6.0.1' } - { name: login, version: '>=3.7.0' } - - { name: email, version: '>=4.1.0' } + - { name: email, version: '>=3.1.6' } - { name: flex-objects, version: '>=1.2.0' } form: diff --git a/classes/plugin/Controllers/Login/LoginController.php b/classes/plugin/Controllers/Login/LoginController.php index 33b486e1..fceaec0e 100644 --- a/classes/plugin/Controllers/Login/LoginController.php +++ b/classes/plugin/Controllers/Login/LoginController.php @@ -483,8 +483,6 @@ class LoginController extends AdminController try { $message = $email->message($subject, $body, 'text/html')->setFrom($from)->setTo($to); $sent = $email->send($message); - //backward compatibility - $sent = $sent['status'] ?? 1; if ($sent < 1) { throw new \RuntimeException('Sending email failed'); }