Skip to content

Commit 1dcfa07

Browse files
committed
Return error when the userLogin service encounters an error during login. It is now more logical to handle unsuccessful logins appropriately and not proceed with 'requirePasswordChange' (OFBIZ-12873)
1 parent d7456c9 commit 1dcfa07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public static String login(HttpServletRequest request, HttpServletResponse respo
602602
Map<String, String> messageMap = UtilMisc.toMap("errorMessage", (String) result.get(ModelService.ERROR_MESSAGE));
603603
String errMsg = UtilProperties.getMessage(resourceWebapp, "loginevents.following_error_occurred_during_login", messageMap, UtilHttp.getLocale(request));
604604
request.setAttribute("_ERROR_MESSAGE_", errMsg);
605-
return requirePasswordChange ? "requirePasswordChange" : "error";
605+
return "error";
606606
}
607607
}
608608

0 commit comments

Comments
 (0)