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);