{# Magic login email (plain text) #}
{%- import 'emails/login/_text-utils.txt.twig' as text -%}
{%- set subject = 'PLUGIN_LOGIN.MAGIC_LOGIN_EMAIL_SUBJECT'|t(site_name) -%}
{%- set message = message ?? 'PLUGIN_LOGIN.MAGIC_LOGIN_EMAIL_MESSAGE'|t -%}
{%- do email.message.setSubject(subject) -%}
{{ text.from_html('PLUGIN_LOGIN.MAGIC_LOGIN_EMAIL_BODY'|t(site_name, message, login_link, author)) }}

{{ login_link }}
