From e7ce517c3d7648ae819fe6f38e1e7de28c54b9de Mon Sep 17 00:00:00 2001 From: "CITE\\spapacharalampous" Date: Thu, 5 Sep 2024 15:22:03 +0300 Subject: [PATCH] email key fix --- .../main/java/org/opencdmp/service/user/UserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/src/main/java/org/opencdmp/service/user/UserServiceImpl.java b/backend/core/src/main/java/org/opencdmp/service/user/UserServiceImpl.java index f1a01eaf8..74bf204ae 100644 --- a/backend/core/src/main/java/org/opencdmp/service/user/UserServiceImpl.java +++ b/backend/core/src/main/java/org/opencdmp/service/user/UserServiceImpl.java @@ -559,7 +559,7 @@ public class UserServiceImpl implements UserService { event.setNotificationType(this.notificationProperties.getMergeAccountConfirmationType()); NotificationFieldData data = new NotificationFieldData(); List fieldInfoList = new ArrayList<>(); - fieldInfoList.add(new FieldInfo("{userName}", DataType.String, currentUser.getName())); + fieldInfoList.add(new FieldInfo("{recipient}", DataType.String, currentUser.getName())); fieldInfoList.add(new FieldInfo("{confirmationToken}", DataType.String, token)); fieldInfoList.add(new FieldInfo("{expiration_time}", DataType.String, this.secondsToTime(this.notificationProperties.getEmailExpirationTimeSeconds()))); data.setFields(fieldInfoList);