Skip to content

Commit

Permalink
Match minimum password length in validator for reset-password artisan…
Browse files Browse the repository at this point in the history
… command
  • Loading branch information
m0nhawk authored and Kovah committed Jul 9, 2024
1 parent b2992ee commit d3e1c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/ResetPasswordCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function resetUserPassword(): void
$newPassword = $this->secret('Please enter a new password for this user');

$validator = Validator::make(['password' => $newPassword], [
'password' => 'required|string|min:10',
'password' => 'required|string|min:8',
]);

if ($validator->invalid()) {
Expand Down

0 comments on commit d3e1c71

Please sign in to comment.