Related to issue 27200: If the authentication is not required, return null
authorMartin Taal <martin.taal@openbravo.com>
Sun, 24 Aug 2014 18:13:24 +0200
changeset 24316 eb39cf6f117a
parent 24315 fd041f65a265
child 24317 f8ce5a3b8dcb
Related to issue 27200: If the authentication is not required, return null
Onl return null if no userId was determined
src/org/openbravo/authentication/AuthenticationManager.java
--- a/src/org/openbravo/authentication/AuthenticationManager.java	Sun Aug 24 13:46:50 2014 +0000
+++ b/src/org/openbravo/authentication/AuthenticationManager.java	Sun Aug 24 18:13:24 2014 +0200
@@ -147,7 +147,7 @@
     }
 
     // if we in 'forceLogin' state, there is no need to process any other code
-    if ("Y".equals(request.getSession().getAttribute("forceLogin"))) {
+    if (userId == null && "Y".equals(request.getSession().getAttribute("forceLogin"))) {
       return null;
     }