mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[PM-8858] include only 1 digit in passphrase (#9632)
This commit is contained in:
@@ -20,8 +20,8 @@ export class CryptoServiceRandomizer implements Randomizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options?.number ?? false) {
|
if (options?.number ?? false) {
|
||||||
const num = await this.crypto.randomNumber(1, 9999);
|
const num = await this.crypto.randomNumber(1, 9);
|
||||||
word = word + this.zeroPad(num.toString(), 4);
|
word = word + num.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return word;
|
return word;
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ export class CryptoServiceRandomizer implements Randomizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options?.number ?? false) {
|
if (options?.number ?? false) {
|
||||||
const num = await this.crypto.randomNumber(1, 9999);
|
const num = await this.crypto.randomNumber(1, 9);
|
||||||
word = word + this.zeroPad(num.toString(), 4);
|
word = word + num.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return word;
|
return word;
|
||||||
|
|||||||
Reference in New Issue
Block a user