1
0
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:
✨ Audrey ✨
2024-11-18 15:00:36 -05:00
parent 3a5112c6c7
commit 9e8a1141c9
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
function initializeBoundaries() {
const numWords = Object.freeze({
min: 6,
min: 3,
max: 20,
});

View File

@@ -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 });