Skip to content

Commit

Permalink
🧑‍💻 Allow empty username and password when not on production (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Mar 6, 2024
2 parents 17d4a62 + 4151708 commit 3c9ff69
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 92 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
composer.lock
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"php": ">=8.1"
},
"require-dev": {
"laravel/pint": "^1.13"
"laravel/pint": "^1.13",
"roots/acorn": "^4.0"
},
"extra": {
"acorn": {
Expand Down
87 changes: 0 additions & 87 deletions composer.lock

This file was deleted.

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 3c9ff69

Please sign in to comment.