NIHVIVO-2898 Make the ${siteName} value available to the email templates.
This commit is contained in:
parent
90b7ead480
commit
c44fae1552
4 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,7 @@ public class UserAccountsCreatePasswordPage extends
|
|||
private void notifyUser() {
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("userAccount", userAccount);
|
||||
body.put("siteName", getSiteName());
|
||||
|
||||
FreemarkerEmailMessage email = FreemarkerEmailFactory
|
||||
.createNewMessage(vreq);
|
||||
|
|
|
@ -68,6 +68,7 @@ public abstract class UserAccountsFirstTimeExternalPageStrategy extends
|
|||
public void notifyUser(UserAccount ua) {
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("userAccount", ua);
|
||||
body.put("siteName", getSiteName());
|
||||
|
||||
FreemarkerEmailMessage email = FreemarkerEmailFactory
|
||||
.createNewMessage(vreq);
|
||||
|
|
|
@ -173,6 +173,7 @@ public abstract class UserAccountsMyAccountPageStrategy extends
|
|||
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("userAccount", page.getUserAccount());
|
||||
body.put("siteName", getSiteName());
|
||||
|
||||
FreemarkerEmailMessage email = FreemarkerEmailFactory
|
||||
.createNewMessage(vreq);
|
||||
|
|
|
@ -57,6 +57,7 @@ public class UserAccountsResetPasswordPage extends UserAccountsPasswordBasePage
|
|||
private void notifyUser() {
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
body.put("userAccount", userAccount);
|
||||
body.put("siteName", getSiteName());
|
||||
|
||||
FreemarkerEmailMessage email = FreemarkerEmailFactory
|
||||
.createNewMessage(vreq);
|
||||
|
|
Loading…
Add table
Reference in a new issue