예제 #1
0
func NewChangedPasswordEmail(user *models.User) *core.EmailTemplate {
	data := struct {
		Name string
	}{user.Name}

	return core.NewEmailTemplate(
		[]string{"layout/email.html", "user/changed_password.html"},
		user.Name,
		user.Email,
		"Sua senha foi alterada",
		data,
	)
}
예제 #2
0
func NewUserRegisteredEmail(user *models.User) *core.EmailTemplate {
	data := struct {
		Name string
	}{user.Name}

	return core.NewEmailTemplate(
		[]string{"layout/email.html", "user/registered.html"},
		user.Name,
		user.Email,
		"Bem vindo ao BrowTaxi",
		data,
	)
}
예제 #3
0
func NewResetPasswordEmail(user *models.User, token string) *core.EmailTemplate {
	data := struct {
		Name string
		Url  string
	}{user.Name, "http://taxiapp.com/auth/reset/" + token}

	return core.NewEmailTemplate(
		[]string{"layout/email.html", "user/reset_password.html"},
		user.Name,
		user.Email,
		"Para cadastrar uma nova senha siga as instruções",
		data,
	)
}