IDEMPIERE-5408 Allow or enforce login with specific tenant (FHCA-3823) / fix issue with EMail MFA (#1545)
* When user login with EMail MFA the MFA panel is not shown and the Processing message just keep spinning * Changed the message TenantNotFound by FailedLogin to avoid a brute force attack to discover which tenants are valid in the installation
This commit is contained in:
parent
15737d2238
commit
dd77cc01cb
|
@ -1309,7 +1309,7 @@ public class Login
|
|||
if (hasTenant) {
|
||||
client = MClient.getByLoginPrefix(app_tenant);
|
||||
if (client == null) {
|
||||
loginErrMsg = Msg.getMsg(m_ctx, "TenantNotFound", new Object[] {app_tenant});
|
||||
loginErrMsg = Msg.getMsg(m_ctx, "FailedLogin");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -134,6 +134,8 @@ public class ValidateMFAPanel extends Window implements EventListener<Event> {
|
|||
|
||||
if (m_autoCall) {
|
||||
validateMFAComplete(true);
|
||||
} else {
|
||||
m_showMFAPanel = true;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue