2017-03-28 16:16:20 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/matcornic/hermes"
|
|
|
|
)
|
|
|
|
|
2017-03-28 16:41:38 +00:00
|
|
|
type reset struct {
|
2017-03-28 16:16:20 +00:00
|
|
|
}
|
|
|
|
|
2017-03-28 16:41:38 +00:00
|
|
|
func (r *reset) Name() string {
|
2017-03-28 16:16:20 +00:00
|
|
|
return "reset"
|
|
|
|
}
|
|
|
|
|
2017-03-28 16:41:38 +00:00
|
|
|
func (r *reset) Email() hermes.Email {
|
2017-03-28 16:16:20 +00:00
|
|
|
return hermes.Email{
|
|
|
|
Body: hermes.Body{
|
|
|
|
Name: "Jon Snow",
|
|
|
|
Intros: []string{
|
|
|
|
"You have received this email because a password reset request for Hermes account was received.",
|
|
|
|
},
|
|
|
|
Actions: []hermes.Action{
|
|
|
|
{
|
|
|
|
Instructions: "Click the button below to reset your password:",
|
|
|
|
Button: hermes.Button{
|
|
|
|
Color: "#DC4D2F",
|
|
|
|
Text: "Reset your password",
|
|
|
|
Link: "https://hermes-example.com/reset-password?token=d9729feb74992cc3482b350163a1a010",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Outros: []string{
|
|
|
|
"If you did not request a password reset, no further action is required on your part.",
|
|
|
|
},
|
|
|
|
Signature: "Thanks",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|