summaryrefslogtreecommitdiffstats
path: root/settings/Mailer
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-30 22:56:14 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-30 22:56:14 +0200
commit404bd1be60c1dafd83b8a1bfe3de7addc5878b1c (patch)
tree8492a9f88e92053f45aec21b66f32a335c93f110 /settings/Mailer
parentee14659ae8f62da48420f3dd2cb8ed167bfca5dd (diff)
downloadnextcloud-server-404bd1be60c1dafd83b8a1bfe3de7addc5878b1c.tar.gz
nextcloud-server-404bd1be60c1dafd83b8a1bfe3de7addc5878b1c.zip
Implement metadata for email templates of remaining emails
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings/Mailer')
-rw-r--r--settings/Mailer/NewUserMailHelper.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/Mailer/NewUserMailHelper.php b/settings/Mailer/NewUserMailHelper.php
index cd6d6ee67f5..1571cfdcb49 100644
--- a/settings/Mailer/NewUserMailHelper.php
+++ b/settings/Mailer/NewUserMailHelper.php
@@ -139,6 +139,14 @@ class NewUserMailHelper {
);
$emailTemplate->addFooter();
+ $emailTemplate->setMetaData('settings.Welcome', [
+ 'link' => $link,
+ 'displayname' => $displayName,
+ 'username' => $userName,
+ 'instancename' => $this->themingDefaults->getName(),
+ 'resetTokenGenerated' => $generatePasswordResetToken,
+ ]);
+
return $emailTemplate;
}