From d22e784aaaba2826b2c238f7a7caea0e1e448577 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 25 Jun 2020 10:52:56 +0300 Subject: [PATCH] Redundant failed login attempts with no auth credentials fixed --- monkey/monkey_island/cc/ui/src/components/Main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/Main.js b/monkey/monkey_island/cc/ui/src/components/Main.js index c2fe23ade..6a3f18a5a 100644 --- a/monkey/monkey_island/cc/ui/src/components/Main.js +++ b/monkey/monkey_island/cc/ui/src/components/Main.js @@ -29,6 +29,9 @@ const reportZeroTrustRoute = '/report/zeroTrust'; class AppComponent extends AuthComponent { updateStatus = () => { + if (this.state.isLoggedIn === false){ + return + } this.auth.loggedIn() .then(res => { if (this.state.isLoggedIn !== res) { @@ -110,7 +113,8 @@ class AppComponent extends AuthComponent { report_done: false, isLoggedIn: undefined, needsRegistration: undefined - } + }, + noAuthLoginAttempted: undefined }; }