Skip to content

Commit

Permalink
error name changes (#211)
Browse files Browse the repository at this point in the history
* changes
  • Loading branch information
juhiagl8 authored Apr 27, 2023
1 parent c57fc2c commit 922924c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/sunbird/common/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ public class Constants {
public static final String CASSANDRA_DB = "cassandra db";
public static final String REDIS_CACHE = "redis cache";
public static final String PHONE_NUMBER_EXIST_ERROR = "Phone number is already registered.";
public static final String MOBILE_NUMBER_EXIST_ERROR = "Mobile number is already registered.";
public static final String PHONE_VERIFIED = "phoneVerified";
public static final String QUERY = "query";
public static final String SORT_BY_KEYWORD = "sortBy";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private List<String> validateEmailContactAndDomain(UserRegistration userRegistra
errList.add(Constants.EMAIL_EXIST_ERROR);
}
if (userUtilityService.isUserExist(Constants.PHONE, String.valueOf(userRegistration.getPhone()))) {
errList.add(Constants.PHONE_NUMBER_EXIST_ERROR);
errList.add(Constants.MOBILE_NUMBER_EXIST_ERROR);
}

if (!errList.isEmpty()) {
Expand Down

0 comments on commit 922924c

Please sign in to comment.