2020-08-21 09:16:23 +07:00
|
|
|
package templates
|
|
|
|
|
|
|
|
import (
|
|
|
|
"text/template"
|
|
|
|
)
|
|
|
|
|
2022-04-03 19:24:51 +07:00
|
|
|
// PlainTextEmailTemplateStep1 the template of email that the user will receive for identity verification.
|
|
|
|
var PlainTextEmailTemplateStep1 *template.Template
|
2020-08-21 09:16:23 +07:00
|
|
|
|
|
|
|
func init() {
|
2022-04-03 19:24:51 +07:00
|
|
|
t, err := template.New("text_email_template").Parse(emailPlainTextContentStep1)
|
2020-08-21 09:16:23 +07:00
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
2022-04-03 19:24:51 +07:00
|
|
|
PlainTextEmailTemplateStep1 = t
|
2020-08-21 09:16:23 +07:00
|
|
|
}
|
|
|
|
|
2022-04-03 19:24:51 +07:00
|
|
|
const emailPlainTextContentStep1 = `
|
2020-08-21 09:16:23 +07:00
|
|
|
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}}
|
|
|
|
|
2022-04-03 19:24:51 +07:00
|
|
|
This email was generated by a user with the IP {{.remoteIP}}.
|
|
|
|
|
2021-02-12 12:59:42 +07:00
|
|
|
Please contact an administrator if you did not initiate the process.
|
2020-08-21 09:16:23 +07:00
|
|
|
`
|