Improved: General refactoring and code improvements, package
org.apache.ofbiz.common.login. (OFBIZ-9880) Thanks Julian Leichert for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818567 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user