fix: production password rule and cleanup code
This commit is contained in:
@@ -45,15 +45,14 @@ class AppServiceProvider extends ServiceProvider
|
||||
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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user