From b1d1ac2bba3c59ff4625b4096022e6b51a4d16b4 Mon Sep 17 00:00:00 2001 From: Diego Ruiz <12065321+d-ruiz@users.noreply.github.com> Date: Tue, 1 Mar 2022 19:09:45 +0100 Subject: [PATCH] IDEMPIERE-5210 - Login Event Handler not redirecting to login page after error (#1207) --- .../WEB-INF/src/org/adempiere/webui/panel/ValidateMFAPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ValidateMFAPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ValidateMFAPanel.java index 591d621d77..ea119c0ce8 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ValidateMFAPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ValidateMFAPanel.java @@ -124,6 +124,7 @@ public class ValidateMFAPanel extends Window implements EventListener { String registerCookie = getCookie(getCookieName()); login = new Login(ctx); + this.addEventListener(ON_DEFER_LOGOUT, this); if (login.isMFARequired(registerCookie)) { initComponents(registerCookie != null); init(); @@ -295,7 +296,6 @@ public class ValidateMFAPanel extends Window implements EventListener { txtValidationCode.setCols(25); ZKUpdateUtil.setWidth(txtValidationCode, "220px"); txtValidationCode.setDisabled(true); - this.addEventListener(ON_DEFER_LOGOUT, this); } public void onEvent(Event event) {