From 78d9a41a7b660167a9ac3f85fafd623849ffddeb Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Thu, 25 Aug 2022 14:21:36 -0400 Subject: [PATCH] [MM-45003] Fix the infinite redirect caused by MFA sending the login signal repeatedly (#2237) * [MM-45003] Fix the infinite redirect caused by MFA sending the login signal repeatedly * Update src/main/windows/windowManager.ts Co-authored-by: Tasos Boulis Co-authored-by: Tasos Boulis --- src/main/windows/windowManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/windows/windowManager.ts b/src/main/windows/windowManager.ts index b3440ae4..a94e9222 100644 --- a/src/main/windows/windowManager.ts +++ b/src/main/windows/windowManager.ts @@ -698,7 +698,7 @@ export class WindowManager { log.debug('WindowManager.handleAppLoggedIn', viewName); const view = this.viewManager?.views.get(viewName); - if (view) { + if (view && !view.isLoggedIn) { view.isLoggedIn = true; this.viewManager?.reloadViewIfNeeded(viewName); } @@ -708,7 +708,7 @@ export class WindowManager { log.debug('WindowManager.handleAppLoggedOut', viewName); const view = this.viewManager?.views.get(viewName); - if (view) { + if (view && view.isLoggedIn) { view.isLoggedIn = false; } }