You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2017/12/18 13:45:13 UTC

svn commit: r1818567 - /ofbiz/ofbiz-framework/trunk/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java

Author: mbrohl
Date: Mon Dec 18 13:45:13 2017
New Revision: 1818567

URL: http://svn.apache.org/viewvc?rev=1818567&view=rev
Log:
Improved: General refactoring and code improvements, package 
org.apache.ofbiz.common.login.
(OFBIZ-9880)

Thanks Julian Leichert for reporting and providing the patch.

Modified:
    ofbiz/ofbiz-framework/trunk/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java

Modified: ofbiz/ofbiz-framework/trunk/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java?rev=1818567&r1=1818566&r2=1818567&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java Mon Dec 18 13:45:13 2017
@@ -98,9 +98,13 @@ public class LoginServices {
         boolean isServiceAuth = context.get("isServiceAuth") != null && ((Boolean) context.get("isServiceAuth")).booleanValue();
 
         String username = (String) context.get("login.username");
-        if (username == null) username = (String) context.get("username");
+        if (username == null) {
+            username = (String) context.get("username");
+        }
         String password = (String) context.get("login.password");
-        if (password == null) password = (String) context.get("password");
+        if (password == null) {
+            password = (String) context.get("password");
+        }
 
         // get the visitId for the history entity
         String visitId = (String) context.get("visitId");