From 17b4166de274f830856b355dfebb5d373bf3df26 Mon Sep 17 00:00:00 2001 From: Euan Millar Date: Wed, 10 Jul 2024 16:53:06 +0100 Subject: [PATCH] remove special characters from the password generation (#209) --- infrastructure/environments/setup-environment.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infrastructure/environments/setup-environment.ts b/infrastructure/environments/setup-environment.ts index 12f8a9bfe..83a0642bf 100644 --- a/infrastructure/environments/setup-environment.ts +++ b/infrastructure/environments/setup-environment.ts @@ -221,8 +221,7 @@ async function promptAndStoreAnswer( } function generateLongPassword() { - const chars = - '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_' + const chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' let result = '' for (let i = 16; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)]