Handle: the email address used to request the token
Example overriding the optional subject, the plain and html body:
{{ define "subject" -}}
Secure login to example.com
{{- end }}
{{ define "text/plain" }}
Hi,
You requested a secure login request. Please follow the link to login.
{{.LoginURL}}
Didn't request a secure login? Please ignore this message, no harm done.
Be secure,
Login Bot
{{ end }}
{{ define "text/html" }}
<p>Hi,<p>
<p>You requested a secure login request. Please follow the link to login.</p>
<p><a href="{{.LoginURL}}">login link to example.com</a></p>
<p>Didn't request a secure login? Please ignore this message, no harm done.</p>
<p>Be secure,</p>
<p>Login Bot</p>
{{ end }}
Overwrite the default mail template to allow a custom subject and body.
Define the location of the mail template In the configuration:
Available template values:
Example overriding the optional subject, the plain and html body: