[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:
@@ -698,7 +698,7 @@ export class WindowManager {
|
|||||||
log.debug('WindowManager.handleAppLoggedIn', viewName);
|
log.debug('WindowManager.handleAppLoggedIn', viewName);
|
||||||
|
|
||||||
const view = this.viewManager?.views.get(viewName);
|
const view = this.viewManager?.views.get(viewName);
|
||||||
if (view) {
|
if (view && !view.isLoggedIn) {
|
||||||
view.isLoggedIn = true;
|
view.isLoggedIn = true;
|
||||||
this.viewManager?.reloadViewIfNeeded(viewName);
|
this.viewManager?.reloadViewIfNeeded(viewName);
|
||||||
}
|
}
|
||||||
@@ -708,7 +708,7 @@ export class WindowManager {
|
|||||||
log.debug('WindowManager.handleAppLoggedOut', viewName);
|
log.debug('WindowManager.handleAppLoggedOut', viewName);
|
||||||
|
|
||||||
const view = this.viewManager?.views.get(viewName);
|
const view = this.viewManager?.views.get(viewName);
|
||||||
if (view) {
|
if (view && view.isLoggedIn) {
|
||||||
view.isLoggedIn = false;
|
view.isLoggedIn = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user