mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 14:34:02 +00:00
revert passphrase boundary change
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function initializeBoundaries() {
|
||||
const numWords = Object.freeze({
|
||||
min: 6,
|
||||
min: 3,
|
||||
max: 20,
|
||||
});
|
||||
|
||||
|
||||
@@ -72,9 +72,9 @@ describe("PassphrasePolicyConstraints", () => {
|
||||
});
|
||||
|
||||
it.each([
|
||||
[1, 6],
|
||||
[1, 3],
|
||||
[21, 20],
|
||||
])("fits numWords (=%p) within the default bounds (6 <= %p <= 20)", (value, expected) => {
|
||||
])("fits numWords (=%p) within the default bounds (3 <= %p <= 20)", (value, expected) => {
|
||||
const policy = new PassphrasePolicyConstraints(Policies.Passphrase.disabledValue);
|
||||
|
||||
const { numWords } = policy.adjust({ ...SomeSettings, numWords: value });
|
||||
|
||||
Reference in New Issue
Block a user