IDEMPIERE-358 Login- how to make unique and safe - fix problem stopping POS to work

This commit is contained in:
Carlos Ruiz 2012-10-02 15:11:25 -05:00
parent 1d5a201e7f
commit bdccbad711
1 changed files with 3 additions and 2 deletions

View File

@ -966,8 +966,9 @@ public final class ALogin extends CDialog
Env.setContext(m_ctx, "#AD_Client_ID", client.getKey());
MUser user = MUser.get (m_ctx, userTextField.getText());
if (user != null) {
Env.setContext(m_ctx, "#AD_User_ID", user.getAD_User_ID() );
Env.setContext(m_ctx, "#SalesRep_ID", user.getAD_User_ID() );
Env.setContext(m_ctx, "#AD_User_Name", userTextField.getText());
Env.setContext(m_ctx, "#AD_User_ID", user.getAD_User_ID());
Env.setContext(m_ctx, "#SalesRep_ID", user.getAD_User_ID());
}
//
KeyNamePair[] roles = m_login.getRoles(userTextField.getText(), client);