Merge pull request #160 from mozilla/dont_cache_in_cookie
Don't stash scan results in session cookie
This commit is contained in:
Коммит
49ade1f439
|
@ -20,12 +20,7 @@ router.post("/", urlEncodedParser, async (req, res) => {
|
|||
}
|
||||
|
||||
if (emailHash) {
|
||||
if (req.session.scanResults[emailHash]) {
|
||||
foundBreaches = req.session.scanResults[emailHash];
|
||||
} else {
|
||||
foundBreaches = await HIBP.getBreachesForEmail(emailHash);
|
||||
req.session.scanResults[emailHash] = foundBreaches;
|
||||
}
|
||||
foundBreaches = await HIBP.getBreachesForEmail(emailHash);
|
||||
}
|
||||
|
||||
res.render("scan", {
|
||||
|
|
Загрузка…
Ссылка в новой задаче