mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
fix: production password rule and cleanup code
This commit is contained in:
1 file changed
+3
-4
@@ -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