hermes/examples/default/reset.go

38 lines
826 B
Go
Raw Normal View History

2017-03-28 16:16:20 +00:00
package main
import (
"github.com/matcornic/hermes"
)
type Reset struct {
}
func (r *Reset) Name() string {
return "reset"
}
func (r *Reset) Email() hermes.Email {
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",
},
}
}