From 045f4a42dbc50002094f26174b8342663755ce58 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 28 Aug 2023 00:11:42 +0800 Subject: [PATCH] replace the app name in the email with the one configured in the config file --- pkg/services/forget_passwords.go | 1 + templates/email/password_reset.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/services/forget_passwords.go b/pkg/services/forget_passwords.go index 12e9111a..ae6c38d2 100644 --- a/pkg/services/forget_passwords.go +++ b/pkg/services/forget_passwords.go @@ -58,6 +58,7 @@ func (s *ForgetPasswordService) SendPasswordResetEmail(user *models.User, passwo } templateParams := map[string]interface{}{ + "AppName": s.CurrentConfig().AppName, "ForgetPasswordMail": map[string]interface{}{ "Title": forgetPasswordTextItems.Title, "Salutation": fmt.Sprintf(forgetPasswordTextItems.SalutationFormat, user.Nickname), diff --git a/templates/email/password_reset.tmpl b/templates/email/password_reset.tmpl index 6640642c..299309b9 100644 --- a/templates/email/password_reset.tmpl +++ b/templates/email/password_reset.tmpl @@ -10,7 +10,7 @@ - +
ezBookkeeping{{.AppName}}