fix: production password rule and cleanup code
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user