details:   https://code.openbravo.com/erp/devel/pi/rev/cf11c0384bf8
changeset: 24300:cf11c0384bf8
user:      Rafa Alonso <rafael.alonso <at> openbravo.com>
date:      Fri Aug 22 11:21:55 2014 +0200
summary:   Related to issue 27200: If the authentication is not required, 
return null

diffstat:

 src/org/openbravo/authentication/AuthenticationManager.java |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 2510c39ff5e9 -r cf11c0384bf8 
src/org/openbravo/authentication/AuthenticationManager.java
--- a/src/org/openbravo/authentication/AuthenticationManager.java       Fri Aug 
22 11:06:59 2014 +0200
+++ b/src/org/openbravo/authentication/AuthenticationManager.java       Fri Aug 
22 11:21:55 2014 +0200
@@ -139,6 +139,11 @@
       localAdress = HttpBaseUtils.getLocalAddress(request);
     }
 
+    // if we are in 'forceLogin' model there is no need to process any other 
code
+    if ("Y".equals(request.getSession().getAttribute("forceLogin"))) {
+      return null;
+    }
+
     final String userId = doAuthenticate(request, response);
 
     final VariablesSecureApp vars = new VariablesSecureApp(request, false);

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to