From 54777428d0402e22501bdc77cecf5f0f878611bd Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 5 Mar 2024 18:17:33 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Allow=20emp?= =?UTF-8?q?ty=20`username`=20and=20`password`=20when=20not=20on=20producti?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AcornMail.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/AcornMail.php b/src/AcornMail.php index d0855cf..3745272 100755 --- a/src/AcornMail.php +++ b/src/AcornMail.php @@ -99,9 +99,13 @@ protected function fromAddress(): string */ public function configured(): bool { - return $this->config->get('host') && - $this->config->get('port') && - $this->config->get('username') && - $this->config->get('password'); + if (! $this->app->isProduction()) { + return $this->config->get('host') && $this->config->get('port'); + } + + return $this->config->get('host') + && $this->config->get('port') + && $this->config->get('username') + && $this->config->get('password'); } }