Skip to content

Commit

Permalink
Fix setup username validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Feb 1, 2019
1 parent 6e9d356 commit 6a53e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/SetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function postStep1()
});

$v->sometimes(['env.mail_username'], 'required', function ($input) {
return !in_array($input->env['mail_username'], ['sendmail']);
return !in_array($input->env['mail_driver'], ['sendmail', 'log']);
});

if ($v->passes()) {
Expand Down

0 comments on commit 6a53e21

Please sign in to comment.