🐛 Fix email html rendering
This commit is contained in:
parent
cd01657857
commit
79844c414b
19
.idea/workspace.xml
generated
19
.idea/workspace.xml
generated
@ -4,18 +4,9 @@
|
||||
<option name="autoReloadType" value="ALL" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":globe_with_meridians: Fully localized notification">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/pkg/internal/services/i18n.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/services/i18n.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/pkg/internal/services/ticket.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/services/ticket.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/en-US/confirm-deletion.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/en-US/confirm-deletion.tmpl" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/en-US/email-otp.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/en-US/email-otp.tmpl" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/en-US/register-confirm.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/en-US/register-confirm.tmpl" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/en-US/reset-password.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/en-US/reset-password.tmpl" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/zh-CN/confirm-deletion.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/zh-CN/confirm-deletion.tmpl" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/zh-CN/email-otp.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/zh-CN/email-otp.tmpl" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/zh-CN/register-confirm.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/zh-CN/register-confirm.tmpl" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/email/zh-CN/reset-password.tmpl" beforeDir="false" afterPath="$PROJECT_DIR$/templates/zh-CN/reset-password.tmpl" afterDir="false" />
|
||||
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":bug: Bug fixes on localization">
|
||||
<change beforePath="$PROJECT_DIR$/pkg/internal/services/factors.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/services/factors.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/pkg/internal/services/tokens.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/services/tokens.go" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@ -168,7 +159,6 @@
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||
<MESSAGE value=":mute: Remove authenticate result logging" />
|
||||
<MESSAGE value=":truck: Rename daily-sign to check-in" />
|
||||
<MESSAGE value=":sparkles: Result modifiers in check-in" />
|
||||
<MESSAGE value=":boom: Passing relationship api arguments in body instead of querystring" />
|
||||
@ -193,7 +183,8 @@
|
||||
<MESSAGE value=":sparkles: Account preferred language" />
|
||||
<MESSAGE value=":sparkles: Push email & notification localization" />
|
||||
<MESSAGE value=":globe_with_meridians: Fully localized notification" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value=":globe_with_meridians: Fully localized notification" />
|
||||
<MESSAGE value=":bug: Bug fixes on localization" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value=":bug: Bug fixes on localization" />
|
||||
<option name="GROUP_MULTIFILE_MERGE_BY_DIRECTORY" value="true" />
|
||||
</component>
|
||||
<component name="VgoProject">
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user