aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/LostController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-02-18 12:38:43 +0100
committerJoas Schilling <coding@schilljs.com>2021-02-18 12:38:43 +0100
commit6ed4aaeeeaf1443a6abbd8d21bbd8dbde1dbdacf (patch)
tree74d32a07a4047fd54f75632b69ee4e90c0c64378 /core/Controller/LostController.php
parentd79cc8ea6ddc6f562ed0eeffc13cdbedf5df81bb (diff)
downloadnextcloud-server-6ed4aaeeeaf1443a6abbd8d21bbd8dbde1dbdacf.tar.gz
nextcloud-server-6ed4aaeeeaf1443a6abbd8d21bbd8dbde1dbdacf.zip
Send emails on password reset to the displayname
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Controller/LostController.php')
-rw-r--r--core/Controller/LostController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php
index 861a701facd..eedb9eef542 100644
--- a/core/Controller/LostController.php
+++ b/core/Controller/LostController.php
@@ -378,7 +378,7 @@ class LostController extends Controller {
try {
$message = $this->mailer->createMessage();
- $message->setTo([$email => $user->getUID()]);
+ $message->setTo([$email => $user->getDisplayName()]);
$message->setFrom([$this->from => $this->defaults->getName()]);
$message->useTemplate($emailTemplate);
$this->mailer->send($message);