diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-02-23 11:58:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 11:58:29 +0100 |
commit | bffd87abf45a0214a779c50dbd7c2bb39ef745d7 (patch) | |
tree | 82d9226eb7cebb18f457d2d9766da04afd1ecc9f /core | |
parent | cb9edff655dfd357ef131ef5facf7653f4828b53 (diff) | |
parent | 6ed4c604c717dc0cd4cf3257773ad912158be1fb (diff) | |
download | nextcloud-server-bffd87abf45a0214a779c50dbd7c2bb39ef745d7.tar.gz nextcloud-server-bffd87abf45a0214a779c50dbd7c2bb39ef745d7.zip |
Merge pull request #25708 from nextcloud/backport/25707/stable21
[stable21] Send emails on password reset to the displayname
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/LostController.php | 2 |
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); |