From ca84e1846876186742c2e37057d576417ee9f71c Mon Sep 17 00:00:00 2001 From: Maks Snegov Date: Sat, 27 Apr 2024 22:47:57 -0700 Subject: [PATCH] Send notification on MAX_LOGIN_ATTEMPTS --- scripts/content.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/content.js b/scripts/content.js index 010371f..e0b69bb 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -433,6 +433,11 @@ async function runner() { else if (isSignInPage()) { // Prevent brute forcing if (ctx.signinAttempts >= MAX_SIGNIN_ATTEMPTS) { + if (prev_ctx.signinAttempts < MAX_SIGNIN_ATTEMPTS) { + msg = 'Too many sign in attempts'; + console.log(msg); + await sendNotification(msg); + } await chrome.storage.local.set({ "ctx_statusMsg": "too many sign in attempts" }); isRunning = false; return;