diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-26 18:53:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-26 18:53:52 +0200 |
commit | 2bf15eda2610b2a06dabe3f3b6ae0675a9980ec4 (patch) | |
tree | 79118c39f031e8bbbf2f18ad295a1b19bf01b72d /core/Controller | |
parent | 0b652648cc698d3b5c2979ccb7f1d1544057294d (diff) | |
parent | f0c34a3e89907cab471dcc35b9eebae8d60ca598 (diff) | |
download | nextcloud-server-2bf15eda2610b2a06dabe3f3b6ae0675a9980ec4.tar.gz nextcloud-server-2bf15eda2610b2a06dabe3f3b6ae0675a9980ec4.zip |
Merge pull request #6255 from nextcloud/email-meta-data
Add meta information to emails for better customisation
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/LostController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index d23a6c2970d..45423b41e8b 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -306,6 +306,9 @@ class LostController extends Controller { $link = $this->urlGenerator->linkToRouteAbsolute('core.lost.resetform', array('userId' => $user->getUID(), 'token' => $token)); $emailTemplate = $this->mailer->createEMailTemplate(); + $emailTemplate->setMetaData('core.ResetPassword', [ + 'link' => $link, + ]); $emailTemplate->addHeader(); $emailTemplate->addHeading($this->l10n->t('Password reset')); |