Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

FIX reset or forgot mails #44

Open
wants to merge 4 commits into
base: newdist
Choose a base branch
from
Open
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 @@ -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(),
Copy link
Contributor

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.

member.getInviteUser(), AppUI.getSubDomain(), AppUI.getAccountId());
AsyncEventBus asyncEventBus = AppContextUtil.getSpringBean(AsyncEventBus.class);
asyncEventBus.post(invitationEvent);
Expand Down