Skip to content

Commit e0a71f0

Browse files
feat: setup security module
1 parent 735486a commit e0a71f0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

setup/setup.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,11 @@ try {
244244
$content = $content -replace '"Email":\s*"[^"]*"', "`"Email`": `"$adminEmail`""
245245
$content = $content -replace '"Password":\s*"[^"]*"', "`"Password`": `"$adminPassword`""
246246

247-
# Update security keys
248-
$content = $content -replace '"EncryptionSymmetricKey":\s*"[^"]*"', "`"EncryptionSymmetricKey`": `"$encryptionKey`""
249-
$content = $content -replace '"ApiKey":\s*"[^"]*"', "`"ApiKey`": `"$apiKey`""
250-
$content = $content -replace '"Key":\s*"[^"]*"', "`"Key`": `"$jwtKey`""
247+
# Update security keys
248+
$content = $content -replace '"ApplicationName":\s*"CanBeYours"', "`"ApplicationName`": `"$solutionName`""
249+
$content = $content -replace '"EncryptionSymmetricKey":\s*"[^"]*"', "`"EncryptionSymmetricKey`": `"$encryptionKey`""
250+
$content = $content -replace '"ApiKey":\s*"[^"]*"', "`"ApiKey`": `"$apiKey`""
251+
$content = $content -replace '"Key":\s*"[^"]*"', "`"Key`": `"$jwtKey`""
251252

252253
# Update Swagger title preserving the suffix
253254
$content = $content -replace '"Title":\s*"Can Be Yours([^"]*)"', "`"Title`": `"$appName`$1`""

0 commit comments

Comments
 (0)