From 43d526b7735c451526af808ac0185c71372ccc71 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 16 Jan 2025 18:06:46 +0100 Subject: [PATCH] fix: production password rule and cleanup code --- app/Providers/AppServiceProvider.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 6ed5e654e..c94574ce3 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -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(); }); }