IDEMPIERE-3178 Can't login to iDempiere monitor if same user/pass exist in a tenant

This commit is contained in:
Carlos Ruiz 2016-09-03 18:40:20 +02:00
parent 779aace1cc
commit 60cc3c8364
1 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public class MUser extends X_AD_User
List<MUser> users = new Query(ctx, MUser.Table_Name, where.toString(), null)
.setParameters(name)
.setOrderBy(MUser.COLUMNNAME_AD_User_ID)
.setOrderBy("AD_Client_ID, AD_User_ID") // prefer first user on System
.list();
if (users.size() == 0) {
@ -223,6 +223,7 @@ public class MUser extends X_AD_User
if (valid){
retValue=user;
break;
}
}