Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cbrelease-4.8.13' into cbrelease…
Browse files Browse the repository at this point in the history
…-4.8.14
  • Loading branch information
karthik-tarento committed May 29, 2024
2 parents dea8f87 + 8a4b713 commit 85e33e2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public SBApiResponse generateOTP(Map<String, Object> otpRequests) {
Map<String, Object> apiResponse = outboundRequestHandlerService.fetchResultUsingPost(url, otpRequests,
headers);
if (Constants.OK.equalsIgnoreCase((String) apiResponse.get(Constants.RESPONSE_CODE))) {
LOGGER.info("OTP Generation successful");
response.setVer("v1");
response.getParams().setStatus(Constants.SUCCESS.toUpperCase());
response.getParams().setResmsgid(UUID.randomUUID().toString());
Expand All @@ -220,6 +221,7 @@ public SBApiResponse generateOTP(Map<String, Object> otpRequests) {
}
}
if (StringUtils.isNotBlank(errMsg)) {
LOGGER.error("OTP generation request failed, error message : ",errMsg);
response.getParams().setStatus(Constants.FAILED);
response.getParams().setErrmsg(errMsg);
response.setResponseCode(HttpStatus.INTERNAL_SERVER_ERROR);
Expand Down

0 comments on commit 85e33e2

Please sign in to comment.