[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 <tboulis@hotmail.com>

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
This commit is contained in:
Devin Binnie
2022-08-25 14:21:36 -04:00
committed by GitHub
parent f58a4b1826
commit 78d9a41a7b

View File

@@ -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;
}
}