aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Mailer
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-02-04 17:29:14 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-02-04 17:29:14 +0100
commit855a4c680f4cb12f64999db2ff58cfb0bdc0614d (patch)
treeebd9bf7575776b56b3161f31ee035b44a6bbb928 /src/Wallabag/UserBundle/Mailer
parente008c037f53324b931f027483f9f1053171109c5 (diff)
downloadwallabag-855a4c680f4cb12f64999db2ff58cfb0bdc0614d.tar.gz
wallabag-855a4c680f4cb12f64999db2ff58cfb0bdc0614d.tar.zst
wallabag-855a4c680f4cb12f64999db2ff58cfb0bdc0614d.zip
Fix #1643: fix the way to load the HTML template in 2factor auth
Diffstat (limited to 'src/Wallabag/UserBundle/Mailer')
-rw-r--r--src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php
index 98017f43..d8403491 100644
--- a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php
+++ b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php
@@ -48,7 +48,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
48 private $supportUrl; 48 private $supportUrl;
49 49
50 /** 50 /**
51 * Url for the wallabag instance (only used for image in the HTML email template) 51 * Url for the wallabag instance (only used for image in the HTML email template).
52 * 52 *
53 * @var string 53 * @var string
54 */ 54 */
@@ -80,7 +80,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
80 */ 80 */
81 public function sendAuthCode(TwoFactorInterface $user) 81 public function sendAuthCode(TwoFactorInterface $user)
82 { 82 {
83 $template = $this->twig->loadTemplate('@WallabagUserBundle/Resources/views/TwoFactor/email_auth_code.html.twig'); 83 $template = $this->twig->loadTemplate('WallabagUserBundle:TwoFactor:email_auth_code.html.twig');
84 84
85 $subject = $template->renderBlock('subject', array()); 85 $subject = $template->renderBlock('subject', array());
86 $bodyHtml = $template->renderBlock('body_html', [ 86 $bodyHtml = $template->renderBlock('body_html', [