🐛 Fix email html rendering

This commit is contained in:
2025-02-01 18:27:57 +08:00
parent cd01657857
commit 79844c414b
3 changed files with 7 additions and 16 deletions

View File

@ -118,7 +118,7 @@ func GetFactorCode(factor models.AuthFactor, ip string) (bool, error) {
To: user.GetPrimaryEmail().Content,
Email: pushkit.EmailData{
Subject: subject,
Text: &content,
HTML: &content,
},
})
if err != nil {

View File

@ -89,7 +89,7 @@ func NotifyMagicToken(token models.MagicToken) error {
To: user.GetPrimaryEmail().Content,
Email: pushkit.EmailData{
Subject: subject,
Text: &content,
HTML: &content,
},
})
return err