details: https://code.openbravo.com/erp/devel/pi/rev/bc2e7f6b9535
changeset: 19070:bc2e7f6b9535
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Wed Dec 19 09:38:41 2012 +0100
summary: Fixed issue 22558. In the WebPOS, the organization will always be
the one from the terminal.
diffstat:
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r b1d5597b22aa -r bc2e7f6b9535
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
--- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Tue Dec
18 16:05:33 2012 +0100
+++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Wed Dec
19 09:38:41 2012 +0100
@@ -221,17 +221,19 @@
boolean loggedOK = false;
- if ("Y".equals(request.getSession().getAttribute("forceLogin"))) {
- variables.loggingIn = "Y";
- }
// NOTE !isLoggingIn assumes that the value of LoggingIn is N, this
// is done by the fillSessionArguments below
if (!variables.isLoggingIn()) {
// log in process is completed, check whether the session in db is
still active
loggedOK = SeguridadData.loggedOK(this, variables.getDBSession());
if (!loggedOK) {
- logout(request, response);
- return;
+ if ("Y".equals(request.getSession().getAttribute("forceLogin"))) {
+ variables.loggingIn = "Y";
+ loggedOK = true;
+ } else {
+ logout(request, response);
+ return;
+ }
}
}
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits