Skip to content

Commit

Permalink
remove special characters from the password generation (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
euanmillar authored Jul 10, 2024
1 parent 9154e29 commit 17b4166
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions infrastructure/environments/setup-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 17b4166

Please sign in to comment.