Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into ft_notification_t…
Browse files Browse the repository at this point in the history
…emplate_api
  • Loading branch information
RushanNanayakkara committed Oct 22, 2024
2 parents b607f12 + f8d0c11 commit c8c7b5b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,13 @@ 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 = Utils.resolveEventName(notificationChannel);
String eventName;
if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationChannel)) {
eventName = IdentityRecoveryConstants.NOTIFICATION_EVENTNAME_PREFIX + notificationChannel
+ IdentityRecoveryConstants.NOTIFICATION_EVENTNAME_SUFFIX;
} else {
eventName = Utils.resolveEventName(notificationChannel);
}
validateCallbackURL(properties, userRecoveryData.getUser());
triggerNotification(userRecoveryData.getUser(), notificationChannel, eventName, properties);
}
Expand Down

0 comments on commit c8c7b5b

Please sign in to comment.