-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX reset or forgot mails #44
base: newdist
Are you sure you want to change the base?
Conversation
extMailService.sendHTMLMail(applicationConfiguration.notifyEmail, applicationConfiguration.siteName, | ||
recipientFields, | ||
Collections.singletonList(MailRecipientField(user.username, user.username)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use listOf instead of Collections.singletonList. of course, both works but I prefer to use the existing Kotlin API in Kotlin source instead of Java library. We can write the code like listOf(MailRecipientField(user.username, user.username))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -164,7 +164,7 @@ private Component generateMemberBlock(SimpleUser member) { | |||
|
|||
if (RegisterStatusConstants.NOT_LOG_IN_YET.equals(member.getRegisterstatus())) { | |||
MButton resendBtn = new MButton(UserUIContext.getMessage(UserI18nEnum.ACTION_RESEND_INVITATION), clickEvent -> { | |||
SendUserInvitationEvent invitationEvent = new SendUserInvitationEvent(member.getUsername(), "", | |||
SendUserInvitationEvent invitationEvent = new SendUserInvitationEvent(member.getUsername(), member.getPassword(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you debug the password value, then you know this password is encrypted and we don't know the original one. So the password (if any) we send to the user in this case can not be used to log in the system.
If we resend the invitation, the user can get the password in the previous email. If they can't get this email, he can use the forgot password.
No description provided.