IDEMPIERE-5210 - Login Event Handler not redirecting to login page after error (#1207)

This commit is contained in:
Diego Ruiz 2022-03-01 19:09:45 +01:00 committed by GitHub
parent 31b758cd76
commit b1d1ac2bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,6 +124,7 @@ public class ValidateMFAPanel extends Window implements EventListener<Event> {
String registerCookie = getCookie(getCookieName()); String registerCookie = getCookie(getCookieName());
login = new Login(ctx); login = new Login(ctx);
this.addEventListener(ON_DEFER_LOGOUT, this);
if (login.isMFARequired(registerCookie)) { if (login.isMFARequired(registerCookie)) {
initComponents(registerCookie != null); initComponents(registerCookie != null);
init(); init();
@ -295,7 +296,6 @@ public class ValidateMFAPanel extends Window implements EventListener<Event> {
txtValidationCode.setCols(25); txtValidationCode.setCols(25);
ZKUpdateUtil.setWidth(txtValidationCode, "220px"); ZKUpdateUtil.setWidth(txtValidationCode, "220px");
txtValidationCode.setDisabled(true); txtValidationCode.setDisabled(true);
this.addEventListener(ON_DEFER_LOGOUT, this);
} }
public void onEvent(Event event) { public void onEvent(Event event) {