Skip to content

Commit

Permalink
fix validation when mobile number update on verification is turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
lashinijay committed Apr 29, 2024
1 parent 3968a6a commit f52b461
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void handleEvent(Event event) throws IdentityEventException {
invalidatePendingMobileVerification(user, userStoreManager, claims);
}
claims.remove(IdentityRecoveryConstants.VERIFY_MOBILE_CLAIM);
if (claims.containsKey(IdentityRecoveryConstants.VERIFIED_MOBILE_NUMBERS_CLAIM)) {
if (!claims.get(IdentityRecoveryConstants.VERIFIED_MOBILE_NUMBERS_CLAIM).isEmpty()) {
throw new IdentityEventClientException(IdentityRecoveryConstants.ErrorMessages.
ERROR_CODE_MOBILE_VERIFICATION_NOT_ENABLED.getCode(), IdentityRecoveryConstants.ErrorMessages.
ERROR_CODE_MOBILE_VERIFICATION_NOT_ENABLED.getMessage());
Expand Down

0 comments on commit f52b461

Please sign in to comment.