Skip to content

Commit

Permalink
Added alert for if that phpne doies notr exist
Browse files Browse the repository at this point in the history
  • Loading branch information
TechieSouls committed Jan 2, 2020
1 parent 716bb65 commit 3fc0cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cg/user/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ public Map<String, Object> deleteUserByPhoneAndPassword(@RequestBody User user)
List<User> usersToDelete = userRepository.findListByPhone(user.getPhone());
if (usersToDelete == null || usersToDelete.size() == 0) {
response.put("success", false);
response.put("message", "User not found");
response.put("message", "The phone number you entered doesn't match your account's.");
return response;
} else {

Expand Down

0 comments on commit 3fc0cc6

Please sign in to comment.