Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: generate password with special characters #1938

Merged
merged 4 commits into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cmd/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,16 @@
}

export const addInitialPasswords = (users: any[], deps = { generatePassword }) => {
for (const user of users) {
if (!user.initialPassword) {
user.initialPassword = deps.generatePassword({
length: 20,
numbers: true,
symbols: true,
symbols: '!@#$%&*',
lowercase: true,
uppercase: true,
exclude: String(':,;"/=|%\\\''),
strict: true,
})

Check warning on line 224 in src/cmd/bootstrap.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
}

Check warning on line 225 in src/cmd/bootstrap.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 225 in src/cmd/bootstrap.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch
}

Check warning on line 226 in src/cmd/bootstrap.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
}
Expand Down