Skip to content

Commit

Permalink
Merge pull request #853 from kenjis/fix-shield-users-validation-rules
Browse files Browse the repository at this point in the history
fix: remove `strong_password` from shield:user validation rules
  • Loading branch information
kenjis authored Sep 24, 2023
2 parents 41f319b + ac302be commit cbaa02f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ private function setValidationRules(): void
if (($key = array_search('strong_password[]', $passwordRules, true)) !== false) {
unset($passwordRules[$key]);
}
if (($key = array_search('strong_password', $passwordRules, true)) !== false) {
unset($passwordRules[$key]);
}

/** @var Auth $config */
$config = config('Auth');
Expand Down

0 comments on commit cbaa02f

Please sign in to comment.