Customized Verification Email (using code) template sent with default layout

I enabled passwordless connection with email code.

I customize the Verification Email (using code) template (following the Multilingual email templates guide).

When I send the test email from the dashboard it renders with my layout.

However when I login using the passwordless connection with email code, an email with the default layout is sent.

Both html changes and user.user_metadata.lang are ignored.

What can be the issue?

Can you help me with this?

This is my Verification Email (using code) template:

This is the email I receive when I test the template using the Try button:

This is the email I receive when I login using a test user (the default template):

This is the user_metadata section of the user details:
Screenshot 2022-02-10 at 8.58.54

I have configured an email provider with smtp.

The Liquid template is not applied at all.

Thanks in advance for your help.

I found a workaround.

I had to disable the Passwordless Connections Email and re-enable it and define the template from there because the Verification Email (using code) template under Branding is completely ignored.

This looks like a bug.

1 Like

Thanks for sharing it with the rest of community! Iā€™m gonna share it with appropriate team!