fix send email with login credentials

This commit is contained in:
Kheireddine Mehdi
2024-10-27 10:56:58 +01:00
parent e0da1675bb
commit c33245fd1f

View File

@@ -363,12 +363,8 @@ public class UserServiceImpl implements UserService {
templateMessageService.generateAndSendMessage(user, template); templateMessageService.generateAndSendMessage(user, template);
} }
if(sendEmailUponAccountCreation){ else if(sendEmailUponAccountCreation){
if (user.equals(AuthUtils.getUser())) { user.setSendEmailUponAccountCreation(false);
logger.debug("User {} changed own password.", user.getCode());
return;
}
AppBase appBase = Beans.get(AppBaseService.class).getAppBase(); AppBase appBase = Beans.get(AppBaseService.class).getAppBase();
Template template = appBase.getAccountCreationTemplate(); Template template = appBase.getAccountCreationTemplate();