Skip to content

Commit

Permalink
fixes issue with checking CDI version in reset password API
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh committed Jan 31, 2022
1 parent 613b4c5 commit 179ae23
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws I
JsonObject result = new JsonObject();
result.addProperty("status", "OK");

if (super.getVersionFromRequest(req).equals("2.12")) {
if (!(super.getVersionFromRequest(req).equals("2.7") || super.getVersionFromRequest(req).equals("2.8")
|| super.getVersionFromRequest(req).equals("2.9") || super.getVersionFromRequest(req).equals("2.10")
|| super.getVersionFromRequest(req).equals("2.11"))) {
// >= 2.12
result.addProperty("userId", userId);
}

Expand Down

0 comments on commit 179ae23

Please sign in to comment.