Send emails on password reset to the displayname
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d9186a2f46
commit
42e28633f5
|
@ -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);
|
||||
|
|
|
@ -93,6 +93,9 @@ class LostControllerTest extends \Test\TestCase {
|
|||
$this->existingUser->expects($this->any())
|
||||
->method('getUID')
|
||||
->willReturn('ExistingUser');
|
||||
$this->existingUser->expects($this->any())
|
||||
->method('getDisplayName')
|
||||
->willReturn('Existing User');
|
||||
$this->existingUser->expects($this->any())
|
||||
->method('isEnabled')
|
||||
->willReturn(true);
|
||||
|
|
Loading…
Reference in New Issue