1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

[PM-6755] Fix password generation defaults on CLI (#8308)

* Fix minSpecial for pwd generation being set to 1 instead of zero

* Use less magic numbers

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2024-03-19 17:20:57 +01:00
committed by GitHub
parent 61b3759736
commit ea0035f658
3 changed files with 19 additions and 7 deletions

View File

@@ -78,6 +78,6 @@ export const DefaultPasswordGenerationOptions: Partial<PasswordGenerationOptions
lowercase: true,
number: true,
minNumber: 1,
special: true,
minSpecial: 1,
special: false,
minSpecial: 0,
});

View File

@@ -23,7 +23,7 @@ const DefaultOptions: PasswordGeneratorOptions = {
lowercase: true,
minLowercase: 0,
special: false,
minSpecial: 1,
minSpecial: 0,
type: "password",
numWords: 3,
wordSeparator: "-",