From 2062efec5814b873ddb03716ebedde9a6e23cae7 Mon Sep 17 00:00:00 2001 From: Vladik Date: Fri, 25 Oct 2024 13:05:31 +0300 Subject: [PATCH] fixed ChangePasswordService.sendEmailToRestorePassword --- .../java/com/chat/yourway/service/ChangePasswordService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chat/yourway/service/ChangePasswordService.java b/src/main/java/com/chat/yourway/service/ChangePasswordService.java index 73cab6f..93ae4c3 100644 --- a/src/main/java/com/chat/yourway/service/ChangePasswordService.java +++ b/src/main/java/com/chat/yourway/service/ChangePasswordService.java @@ -42,9 +42,9 @@ public void sendEmailToRestorePassword(String email, String clientHost) { emailTokenRepository.save(emailToken); - var emailMessageInfo = new EmailMessageInfoDto(contact.getNickname(), + var emailMessageInfo = new EmailMessageInfoDto( + contact.getNickname(), contact.getEmail(), - emailToken.getToken(), clientHost, EmailMessageType.RESTORE_PASSWORD); var emailMessage = emailMessageFactoryService.generateEmailMessage(emailMessageInfo);