Merge branch 'email-experiment-breaches-script' of https://github.com/mozilla/blurts-server into email-experiment-breaches-script
This commit is contained in:
Коммит
3da2506206
|
@ -11,7 +11,7 @@ const HIBP = require("../hibp");
|
||||||
async function checkIfBreachesExist(sha1, breaches) {
|
async function checkIfBreachesExist(sha1, breaches) {
|
||||||
const breachResults = await HIBP.getBreachesForEmail(sha1, breaches, true);
|
const breachResults = await HIBP.getBreachesForEmail(sha1, breaches, true);
|
||||||
|
|
||||||
if (breachResults.length > 1) {
|
if (breachResults.length >= 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче