Skip to content

Commit

Permalink
Return phone number in case of failure of hidden fields web request. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c authored Jan 8, 2024
1 parent 8cd4b9d commit 7eb4e1e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,21 @@ public JSONObject getUserByPhoneFromFederatedServers(String hiddenFieldsStr, Str
return user;
} else {
JSONObject user = new JSONObject();
user.put(hiddenName, "");
user.put(hiddenName, phone);
return user;
}
} catch (Exception e) {
log.error("error : " + e.getMessage());
JSONObject user = new JSONObject();
user.put(hiddenName, "");
user.put(hiddenName, phone);
return user;
}
} catch (IOException e) {
e.printStackTrace();
JSONObject user = new JSONObject();
user.put(hiddenName, phone);
return user;
}
return null;
}

}

0 comments on commit 7eb4e1e

Please sign in to comment.