Browse Source

Merge pull request '增加邮件时,邮件内容格式统一' (#268) from unified-mail-format into V202108

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/268
Reviewed-by: avadesian <xuchx@pcl.ac.cn>
tags/v1.21.8^2
avadesian 4 years ago
parent
commit
1b889e1a37
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      services/mailer/mail.go

+ 1
- 1
services/mailer/mail.go View File

@@ -97,7 +97,7 @@ func SendResetPasswordMail(locale Locale, u *models.User) {
func SendActivateEmailMail(locale Locale, u *models.User, email *models.EmailAddress) {
data := map[string]interface{}{
"DisplayName": u.DisplayName(),
"ActiveCodeLives": timeutil.MinutesToFriendly(setting.Service.ActiveCodeLives, locale.Language()),
"ActiveCodeLives": timeutil.MinutesToFriendly(setting.Service.ActiveCodeLives, "en-US"),
"Code": u.GenerateEmailActivateCode(email.Email),
"Email": email.Email,
}


Loading…
Cancel
Save