1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;

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;