Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ public void sendInvitationEmail(String memberEmail, String receiverName, String
try {
sendEmailPort.sendInvitationEmail(memberEmail, receiverName, initialPassword, userNickname);
} catch (Exception e) {
log.error("Failed to send new password email to: {}", memberEmail, e);
}
}).exceptionally(ex -> {
log.error("Unexpected error occurred while sending new password email", ex);
return null;
});
}).exceptionally(ex -> null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ public void sendInvitation(SendInvitationRequest request) {
String encodedPassword = passwordEncoder.encode(initialPassword);

member.resetPassword(encodedPassword);
commandMemberPort.save(member);

member.changeToApproveRequested();

commandMemberPort.save(member);


sendInvitationEmailService.sendInvitationEmail(
member.getMemberInfo().getEmail(),
member.getMemberInfo().getName(),
Expand Down