Skip to content

Commit

Permalink
Return error when the userLogin service encounters an error during lo…
Browse files Browse the repository at this point in the history
…gin. It is now more logical to handle unsuccessful logins appropriately and not proceed with 'requirePasswordChange' (OFBIZ-12873)
  • Loading branch information
dixitdeepak committed Dec 15, 2023
1 parent b87ff9e commit ee02a33
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -610,7 +610,7 @@ public static String login(HttpServletRequest request, HttpServletResponse respo
String errMsg = UtilProperties.getMessage(RESOURCE, "loginevents.following_error_occurred_during_login",
messageMap, UtilHttp.getLocale(request));
request.setAttribute("_ERROR_MESSAGE_", errMsg);
return requirePasswordChange ? "requirePasswordChange" : "error";
return "error";
}
}

Expand Down

0 comments on commit ee02a33

Please sign in to comment.