summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-09-05 16:08:57 +0200
committerGitHub <noreply@github.com>2017-09-05 16:08:57 +0200
commit15cd21d252b9da706be817df77e4c0643b40327f (patch)
treea38c9c53c35c3a40fbd8ee2bf2c5d05fac586918 /core/Controller
parentcebbb1633aab6c1dfb20be9b49212b934c3b5e68 (diff)
parent4e3c39c1d1210b6216462e8e26db93f65a4767e6 (diff)
downloadnextcloud-server-15cd21d252b9da706be817df77e4c0643b40327f.tar.gz
nextcloud-server-15cd21d252b9da706be817df77e4c0643b40327f.zip
Merge pull request #6358 from nextcloud/fix-mixup-of-id-and-name
Set the meta data before everything
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LostController.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php
index 45423b41e8b..4c59b0a1c00 100644
--- a/core/Controller/LostController.php
+++ b/core/Controller/LostController.php
@@ -305,8 +305,7 @@ 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', [
+ $emailTemplate = $this->mailer->createEMailTemplate('core.ResetPassword', [
'link' => $link,
]);