1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-8858] include only 1 digit in passphrase (#9632)

This commit is contained in:
✨ Audrey ✨
2024-06-17 10:55:18 -04:00
committed by GitHub
parent 4e19c3ef52
commit 95554af9e2
2 changed files with 4 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ export class CryptoServiceRandomizer implements Randomizer {
}
if (options?.number ?? false) {
const num = await this.crypto.randomNumber(1, 9999);
word = word + this.zeroPad(num.toString(), 4);
const num = await this.crypto.randomNumber(1, 9);
word = word + num.toString();
}
return word;