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),