the language of password reset email set to client language if user language is not set

This commit is contained in:
MaysWind
2023-08-27 22:29:54 +08:00
parent c1d90485a1
commit c0bfe429ee
4 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ func (l *UserDataCli) SendPasswordResetMail(c *cli.Context, username string) err
return err
}
err = l.forgetPasswords.SendPasswordResetEmail(user, token)
err = l.forgetPasswords.SendPasswordResetEmail(user, token, "")
if err != nil {
log.BootWarnf("[user_data.SendPasswordResetMail] cannot send email to \"%s\", because %s", user.Email, err.Error())