fix send email with login credentials
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user