IDEMPIERE-358 Login- how to make unique and safe

This commit is contained in:
Carlos Ruiz 2012-09-05 21:23:26 -05:00
parent c6c4c65120
commit 8b1c89c1a7
1 changed files with 5 additions and 1 deletions

View File

@ -1087,7 +1087,11 @@ public final class ALogin extends CDialog
//
this.setTitle(res.getString("Login"));
hostLabel.setText(res.getString("Host"));
userLabel.setText(res.getString("User"));
boolean email_login = MSysConfig.getBooleanValue(MSysConfig.USE_EMAIL_FOR_LOGIN, false);
if (email_login)
userLabel.setText(res.getString("EMail"));
else
userLabel.setText(res.getString("User"));
userLabel.setToolTipText(res.getString("EnterUser"));
passwordLabel.setText(res.getString("Password"));
passwordLabel.setToolTipText(res.getString("EnterPassword"));