fix: production password rule and cleanup code

This commit is contained in:
peaklabs-dev
2025-01-16 18:06:46 +01:00
parent c1504fa5ff
commit 43d526b773

View File

@@ -45,15 +45,14 @@ class AppServiceProvider extends ServiceProvider
private function configurePasswords(): void private function configurePasswords(): void
{ {
Password::defaults(function () { Password::defaults(function () {
$rule = Password::min(8)->letters();
return App::isProduction() return App::isProduction()
? $rule->mixedCase() ? Password::min(8)
->mixedCase()
->letters() ->letters()
->numbers() ->numbers()
->symbols() ->symbols()
->uncompromised() ->uncompromised()
: $rule; : Password::min(8)->letters();
}); });
} }