reset.go 873 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
package service

import (
	"github.com/matcornic/hermes/v2"
)

type reset struct {
}

func (r *reset) Name() string {
	return "reset"
}

14
func (r *reset) Email(user User) hermes.Email {
15
16
	return hermes.Email{
		Body: hermes.Body{
17
18
			// This
			Name: user.FirstName,
19
			Intros: []string{
20
				"You have received this email because a password reset request for your PipIt account was received.",
21
22
23
24
25
			},
			Actions: []hermes.Action{
				{
					Instructions: "Click the button below to reset your password:",
					Button: hermes.Button{
26
						Color: "#207cca",
27
						Text:  "Reset your password",
28
						// This
29
30
31
32
33
34
35
36
37
38
39
						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",
		},
	}
}