fix: production password rule and cleanup code
This commit is contained in:
parent
c1504fa5ff
commit
43d526b773
1 changed files with 3 additions and 4 deletions
|
|
@ -45,15 +45,14 @@ private function configureModels(): void
|
|||
private function configurePasswords(): void
|
||||
{
|
||||
Password::defaults(function () {
|
||||
$rule = Password::min(8)->letters();
|
||||
|
||||
return App::isProduction()
|
||||
? $rule->mixedCase()
|
||||
? Password::min(8)
|
||||
->mixedCase()
|
||||
->letters()
|
||||
->numbers()
|
||||
->symbols()
|
||||
->uncompromised()
|
||||
: $rule;
|
||||
: Password::min(8)->letters();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue