Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Allow empty username and password when not on production
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Mar 6, 2024
1 parent fb9c68e commit 5477742
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/AcornMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit 5477742

Please sign in to comment.