Skip to content

Commit

Permalink
Merge pull request sakaiproject#789 from bbailla2/SAK-29636
Browse files Browse the repository at this point in the history
SAK-29636: 'Your password has been changed successfully' email sent after Add Participants
  • Loading branch information
bjones86 committed Jul 2, 2015
2 parents 92c338b + cf1869b commit f0de556
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,17 @@ public SecurityAdvice isAllowed(String userId, String function, String reference

//validationLogic.

}
// Send password reset acknowledgement email for password reset scenarios
if (ValidationAccount.ACCOUNT_STATUS_PASSWORD_RESET == accountStatus)
{
String supportEmail = serverConfigurationService.getString("support.email");
Map<String, String> replacementValues = new HashMap<String, String>();
replacementValues.put("emailSupport", supportEmail);
emailTemplateService.sendRenderedMessages(TEMPLATE_KEY_ACKNOWLEDGE_PASSWORD_RESET, userReferences, replacementValues, supportEmail, supportEmail);
}
}

String supportEmail = serverConfigurationService.getString("support.email");
Map<String, String> replacementValues = new HashMap<String, String>();
replacementValues.put("emailSupport", supportEmail);
emailTemplateService.sendRenderedMessages(TEMPLATE_KEY_ACKNOWLEDGE_PASSWORD_RESET, userReferences, replacementValues, supportEmail, supportEmail);


return "success";
}
Expand Down

0 comments on commit f0de556

Please sign in to comment.