Improved: Corrected remaining ', is not followed by whitespace' checkstyle errors in framework component.
@@ -74,6 +74,7 @@ public class LoginServices {
/** Login service to authenticate username and password
* @return Map of results including (userLogin) GenericValue object
*/
+ @SuppressWarnings("checkstyle:LineLength")
public static Map<String, Object> userLogin(DispatchContext ctx, Map<String, ?> context) {
LocalDispatcher dispatcher = ctx.getDispatcher();
Locale locale = (Locale) context.get("locale");
@@ -190,8 +191,8 @@ public class LoginServices {
userLogin = GenericValue.create(userLogin);
// get the is system flag -- system accounts can only be used for service authentication
- boolean isSystem = (isServiceAuth && userLogin.get("isSystem") != null) ?
- "Y".equalsIgnoreCase(userLogin.getString("isSystem")) : false;
+ boolean isSystem = (isServiceAuth && userLogin.get("isSystem") != null)
+ ? "Y".equalsIgnoreCase(userLogin.getString("isSystem")) : false;
// grab the hasLoggedOut flag
Boolean hasLoggedOut = userLogin.getBoolean("hasLoggedOut");
@@ -706,7 +707,6 @@ public class LoginServices {
errMsg = UtilProperties.getMessage(RESOURCE, "loginservices.could_not_create_login_user_write_failure", messageMap, locale);
return ServiceUtil.returnError(errMsg);
}
-
result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_SUCCESS);
return result;
}
@@ -1091,9 +1091,7 @@ public class LoginServices {
Map<String, String> messageMap = UtilMisc.toMap("errorMessage", e.getMessage());
errMsg = UtilProperties.getMessage(RESOURCE, "loginevents.error_accessing_password_change_history", messageMap, locale);
}
-
}
-
int minPasswordLength = 0;
try {
