IDEMPIERE-3178 Can't login to iDempiere monitor if same user/pass exist in a tenant
This commit is contained in:
parent
779aace1cc
commit
60cc3c8364
|
@ -198,7 +198,7 @@ public class MUser extends X_AD_User
|
||||||
|
|
||||||
List<MUser> users = new Query(ctx, MUser.Table_Name, where.toString(), null)
|
List<MUser> users = new Query(ctx, MUser.Table_Name, where.toString(), null)
|
||||||
.setParameters(name)
|
.setParameters(name)
|
||||||
.setOrderBy(MUser.COLUMNNAME_AD_User_ID)
|
.setOrderBy("AD_Client_ID, AD_User_ID") // prefer first user on System
|
||||||
.list();
|
.list();
|
||||||
|
|
||||||
if (users.size() == 0) {
|
if (users.size() == 0) {
|
||||||
|
@ -223,6 +223,7 @@ public class MUser extends X_AD_User
|
||||||
|
|
||||||
if (valid){
|
if (valid){
|
||||||
retValue=user;
|
retValue=user;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue