mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
replace the app name in the email with the one configured in the config file
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user