diff options
Diffstat (limited to 'src/Wallabag/UserBundle/Mailer')
-rw-r--r-- | src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php index aed805c9..2797efde 100644 --- a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php +++ b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php | |||
@@ -78,7 +78,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface | |||
78 | * | 78 | * |
79 | * @param TwoFactorInterface $user | 79 | * @param TwoFactorInterface $user |
80 | */ | 80 | */ |
81 | public function sendAuthCode(TwoFactorInterface $user) | 81 | public function sendAuthCode(TwoFactorInterface $user): void |
82 | { | 82 | { |
83 | $template = $this->twig->loadTemplate('WallabagUserBundle:TwoFactor:email_auth_code.html.twig'); | 83 | $template = $this->twig->loadTemplate('WallabagUserBundle:TwoFactor:email_auth_code.html.twig'); |
84 | 84 | ||
@@ -97,7 +97,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface | |||
97 | 97 | ||
98 | $message = new \Swift_Message(); | 98 | $message = new \Swift_Message(); |
99 | $message | 99 | $message |
100 | ->setTo($user->getEmail()) | 100 | ->setTo($user->getEmailAuthRecipient()) |
101 | ->setFrom($this->senderEmail, $this->senderName) | 101 | ->setFrom($this->senderEmail, $this->senderName) |
102 | ->setSubject($subject) | 102 | ->setSubject($subject) |
103 | ->setBody($bodyText, 'text/plain') | 103 | ->setBody($bodyText, 'text/plain') |