feat: add new password magic env with symbols

This commit is contained in:
Andras Bacsai
2024-12-12 11:06:00 +01:00
parent dca30c2db4
commit 76b44e2e6a

View File

@@ -824,6 +824,12 @@ function generateEnvValue(string $command, Service|Application|null $service = n
case 'PASSWORD_64': case 'PASSWORD_64':
$generatedValue = Str::password(length: 64, symbols: false); $generatedValue = Str::password(length: 64, symbols: false);
break; break;
case 'PASSWORDWITHSYMBOLS':
$generatedValue = Str::password(symbols: true);
break;
case 'PASSWORDWITHSYMBOLS_64':
$generatedValue = Str::password(length: 64, symbols: true);
break;
// This is not base64, it's just a random string // This is not base64, it's just a random string
case 'BASE64_64': case 'BASE64_64':
$generatedValue = Str::random(64); $generatedValue = Str::random(64);