Skip to content

Commit

Permalink
Merge pull request mosip#614 from nandhu-kumar/develop
Browse files Browse the repository at this point in the history
MOSIP-38542 - Updated the OTP fetching logic for phone number
  • Loading branch information
ckm007 authored Feb 20, 2025
2 parents d805f58 + e264d4a commit 4623077
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ public static String getOTPFromSMTP(String inputJson, TestCaseDTO testCaseDTO) {
emailId = request.getJSONObject(GlobalConstants.REQUEST)
.getJSONArray(GlobalConstants.CHALLENGELIST).getJSONObject(0)
.getString(GlobalConstants.CHALLENGE);
if (emailId.endsWith(GlobalConstants.OTP_AS_PHONE))
if (emailId.endsWith(GlobalConstants.OTP_AS_PHONE)) {
emailId = emailId.replace(GlobalConstants.OTP_AS_PHONE, "");
emailId = removeLeadingPlusSigns(emailId);
}
logger.info(emailId);
otp = OTPListener.getOtp(emailId);
request.getJSONObject(GlobalConstants.REQUEST).getJSONArray(GlobalConstants.CHALLENGELIST)
Expand Down

0 comments on commit 4623077

Please # to comment.