Skip to content

Commit

Permalink
Merge pull request #118 from samagra-comms/development
Browse files Browse the repository at this point in the history
Return phone number in case of failure of hidden fields web request. …
  • Loading branch information
chinmoy12c authored Jan 10, 2024
2 parents cc49383 + 7eb4e1e commit 49ac3f6
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 49ac3f6

Please sign in to comment.