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:
committed by
GitHub
parent
61b3759736
commit
ea0035f658
@@ -78,6 +78,6 @@ export const DefaultPasswordGenerationOptions: Partial<PasswordGenerationOptions
|
||||
lowercase: true,
|
||||
number: true,
|
||||
minNumber: 1,
|
||||
special: true,
|
||||
minSpecial: 1,
|
||||
special: false,
|
||||
minSpecial: 0,
|
||||
});
|
||||
|
||||
@@ -23,7 +23,7 @@ const DefaultOptions: PasswordGeneratorOptions = {
|
||||
lowercase: true,
|
||||
minLowercase: 0,
|
||||
special: false,
|
||||
minSpecial: 1,
|
||||
minSpecial: 0,
|
||||
type: "password",
|
||||
numWords: 3,
|
||||
wordSeparator: "-",
|
||||
|
||||
Reference in New Issue
Block a user