details: https://code.openbravo.com/erp/devel/pi/rev/ebbe01a04123
changeset: 17744:ebbe01a04123
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Wed Aug 22 12:57:26 2012 +0200
summary: Related to issue 21313: Backs out changesets
Changesets of iffue 21313 has been reverted because it made impossible to see
in the login window the authentication error messages translated.
diffstat:
src/org/openbravo/authentication/basic/DefaultAuthenticationManager.java | 16
+++------
1 files changed, 5 insertions(+), 11 deletions(-)
diffs (31 lines):
diff -r aef492f2af94 -r ebbe01a04123
src/org/openbravo/authentication/basic/DefaultAuthenticationManager.java
--- a/src/org/openbravo/authentication/basic/DefaultAuthenticationManager.java
Wed Aug 22 11:56:44 2012 +0200
+++ b/src/org/openbravo/authentication/basic/DefaultAuthenticationManager.java
Wed Aug 22 12:57:26 2012 +0200
@@ -82,22 +82,16 @@
if (LoginUtils.checkUserPassword(conn, strUser, strPass) == null) {
log4j.debug("Failed user/password. Username: " + strUser + " - Session
ID:" + sessionId);
- errorMsg.setTitle(Utility.messageBD(this.conn,
"IDENTIFICATION_FAILURE_TITLE",
- variables.getLanguage()));
- errorMsg.setMessage(Utility.messageBD(this.conn,
"IDENTIFICATION_FAILURE_MSG",
- variables.getLanguage()));
+ errorMsg.setTitle("IDENTIFICATION_FAILURE_TITLE");
+ errorMsg.setMessage("IDENTIFICATION_FAILURE_MSG");
} else {
log4j.debug(strUser + " is locked cannot activate session ID " +
sessionId);
- errorMsg
- .setTitle(Utility.messageBD(this.conn, "LOCKED_USER_TITLE",
variables.getLanguage()));
- errorMsg
- .setMessage(Utility.messageBD(this.conn, "LOCKED_USER_MSG",
variables.getLanguage()));
- updateDBSession(sessionId, false, "LU");
+ errorMsg.setTitle("LOCKED_USER_TITLE");
+ errorMsg.setMessage("LOCKED_USER_MSG");
}
// throw error message will be caught by LoginHandler
- throw new AuthenticationException(Utility.messageBD(this.conn,
- "IDENTIFICATION_FAILURE_TITLE", variables.getLanguage()), errorMsg);
+ throw new AuthenticationException("IDENTIFICATION_FAILURE_TITLE",
errorMsg);
}
// Using the Servlet API instead of vars.setSessionValue to avoid breaking
code
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits