diff --git a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/username/UsernameRecoveryManagerImpl.java b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/username/UsernameRecoveryManagerImpl.java index 4f4dcb66f..23d278021 100644 --- a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/username/UsernameRecoveryManagerImpl.java +++ b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/username/UsernameRecoveryManagerImpl.java @@ -172,8 +172,8 @@ public UsernameRecoverDTO notify(String recoveryCode, String channelId, String t // If the notifications are externally managed we do not need to send notifications internally. if (!NotificationChannels.EXTERNAL_CHANNEL.getChannelType().equals(notificationChannel)) { String eventName; - if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationChannel)){ - eventName = IdentityRecoveryConstants.NOTIFICATION_EVENTNAME_PREFIX + notificationChannel + if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationChannel)) { + eventName = IdentityRecoveryConstants.NOTIFICATION_EVENTNAME_PREFIX + notificationChannel + IdentityRecoveryConstants.NOTIFICATION_EVENTNAME_SUFFIX; } else { eventName = Utils.resolveEventName(notificationChannel);