replace the app name in the email with the one configured in the config file

This commit is contained in:
MaysWind
2023-08-28 00:11:42 +08:00
parent 3275bc9cae
commit 045f4a42db
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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),
+1 -1
View File
@@ -10,7 +10,7 @@
<body style="margin: 0; padding: 0 10px 0 10px">
<table width="360px" border="0" cellspacing="0" cellpadding="0" style="width: 360px; border: 0; border-collapse: collapse; margin: 10px auto 5px auto;">
<tr>
<td height="50" style="font-size: 20px; line-height: 50px"><strong>ezBookkeeping</strong></td>
<td height="50" style="font-size: 20px; line-height: 50px"><strong>{{.AppName}}</strong></td>
</tr>
<tr>
<td style="padding: 10px 0 10px 0; border-top: solid 1px #ccc">