Problem/Motivation

Mail message defined in send() method calls a template twig with path of module so we can't personalise it. And the variables called in the twig are not replaced by the render system but are replaced with a str_replace.

Proposed resolution

I made a patch that fixes that problems. With this patch, all websites car write their own template "email_login_otp_mail.html.twig" to write the message they want.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

quentin massez created an issue. See original summary.

quentin massez’s picture

StatusFileSize
new3.5 KB
quentin massez’s picture

StatusFileSize
new3.65 KB

With a fixup on the variable declaration.

kul.pratap’s picture

Assigned: Unassigned » kul.pratap

kul.pratap’s picture

Assigned: kul.pratap » Unassigned
Status: Active » Needs review

  • 4be8edfc committed on 1.1.x
    Bug fixes and improvements: Issue #3507448 by quentin massez: Mail...
ahmed.raza’s picture

Thanks for this @quentin massez, this has been tested and applied in 1.1.8

ahmed.raza’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.