mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
bfd5d66ed8
Implemented a system to allow overriding email templates, including the remote IP, and sending email notifications when the password was reset successfully. Closes #2755, Closes #2756 Co-authored-by: Manuel Nuñez <@mind-ar> Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
29 lines
815 B
Go
29 lines
815 B
Go
package templates
|
|
|
|
import (
|
|
"text/template"
|
|
)
|
|
|
|
// PlainTextEmailTemplateStep1 the template of email that the user will receive for identity verification.
|
|
var PlainTextEmailTemplateStep1 *template.Template
|
|
|
|
func init() {
|
|
t, err := template.New("text_email_template").Parse(emailPlainTextContentStep1)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
PlainTextEmailTemplateStep1 = t
|
|
}
|
|
|
|
const emailPlainTextContentStep1 = `
|
|
This email has been sent to you in order to validate your identity.
|
|
If you did not initiate the process your credentials might have been compromised. You should reset your password and contact an administrator.
|
|
|
|
To setup your 2FA please visit the following URL: {{.url}}
|
|
|
|
This email was generated by a user with the IP {{.remoteIP}}.
|
|
|
|
Please contact an administrator if you did not initiate the process.
|
|
`
|