From bdccbad71139cdc38f8f3cbe0ccf802b4969d367 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 2 Oct 2012 15:11:25 -0500 Subject: [PATCH] IDEMPIERE-358 Login- how to make unique and safe - fix problem stopping POS to work --- org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java b/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java index 0618470bb2..56754ae554 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java @@ -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);