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 committed Jul 10, 2024
1 parent 2572f65 commit 35c6e52
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 35c6e52

Please sign in to comment.