Merge pull request #2143 from ZBoxApp/PLT-1932
PLT-1932: Fix change email subject
Этот коммит содержится в:
@@ -18,7 +18,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border-bottom: 1px solid #ddd; padding: 0 0 20px;">
|
<td style="border-bottom: 1px solid #ddd; padding: 0 0 20px;">
|
||||||
<h2 style="font-weight: normal; margin-top: 10px;">{{.Props.Title}}</h2>
|
<h2 style="font-weight: normal; margin-top: 10px;">{{.Props.Title}}</h2>
|
||||||
<p>{{.Props.Info}}</p>
|
<p>{{.Html.Info}}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -1761,14 +1761,14 @@ func sendEmailChangeEmailAndForget(c *Context, oldEmail, newEmail, teamDisplayNa
|
|||||||
go func() {
|
go func() {
|
||||||
|
|
||||||
subjectPage := NewServerTemplatePage("email_change_subject", c.Locale)
|
subjectPage := NewServerTemplatePage("email_change_subject", c.Locale)
|
||||||
subjectPage.Props["Subject"] = c.T("api.templates.email_change_body",
|
subjectPage.Props["Subject"] = c.T("api.templates.email_change_subject",
|
||||||
map[string]interface{}{"TeamDisplayName": teamDisplayName})
|
map[string]interface{}{"TeamDisplayName": teamDisplayName})
|
||||||
|
|
||||||
bodyPage := NewServerTemplatePage("email_change_body", c.Locale)
|
bodyPage := NewServerTemplatePage("email_change_body", c.Locale)
|
||||||
bodyPage.Props["SiteURL"] = siteURL
|
bodyPage.Props["SiteURL"] = siteURL
|
||||||
bodyPage.Props["Title"] = c.T("api.templates.email_change_body.title")
|
bodyPage.Props["Title"] = c.T("api.templates.email_change_body.title")
|
||||||
bodyPage.Props["Info"] = c.T("api.templates.email_change_body.info",
|
bodyPage.Html["Info"] = template.HTML(c.T("api.templates.email_change_body.info",
|
||||||
map[string]interface{}{"TeamDisplayName": teamDisplayName, "NewEmail": newEmail})
|
map[string]interface{}{"TeamDisplayName": teamDisplayName, "NewEmail": newEmail}))
|
||||||
|
|
||||||
if err := utils.SendMail(oldEmail, subjectPage.Render(), bodyPage.Render()); err != nil {
|
if err := utils.SendMail(oldEmail, subjectPage.Render(), bodyPage.Render()); err != nil {
|
||||||
l4g.Error(utils.T("api.user.send_email_change_email_and_forget.error"), err)
|
l4g.Error(utils.T("api.user.send_email_change_email_and_forget.error"), err)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user