mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-26 18:21:02 +00:00
Fix #1643: fix the way to load the HTML template in 2factor auth
This commit is contained in:
parent
e008c037f5
commit
855a4c680f
3 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
|
|||
private $supportUrl;
|
||||
|
||||
/**
|
||||
* Url for the wallabag instance (only used for image in the HTML email template)
|
||||
* Url for the wallabag instance (only used for image in the HTML email template).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
|
@ -80,7 +80,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
|
|||
*/
|
||||
public function sendAuthCode(TwoFactorInterface $user)
|
||||
{
|
||||
$template = $this->twig->loadTemplate('@WallabagUserBundle/Resources/views/TwoFactor/email_auth_code.html.twig');
|
||||
$template = $this->twig->loadTemplate('WallabagUserBundle:TwoFactor:email_auth_code.html.twig');
|
||||
|
||||
$subject = $template->renderBlock('subject', array());
|
||||
$bodyHtml = $template->renderBlock('body_html', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue