summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Wang <R-Wang97@users.noreply.github.com>2017-03-02 16:39:16 -0500
committerenahum <nahumhbl@gmail.com>2017-03-02 18:39:16 -0300
commit8c5cee9521656bcffb371aad9dae4bea8fc70e29 (patch)
tree52ca54aded96e62069e7347ba1a788242a2982ac
parent7de54f063cb260dfcae6c21563df3a044e2160b1 (diff)
downloadchat-8c5cee9521656bcffb371aad9dae4bea8fc70e29.tar.gz
chat-8c5cee9521656bcffb371aad9dae4bea8fc70e29.tar.bz2
chat-8c5cee9521656bcffb371aad9dae4bea8fc70e29.zip
Correct typo in app/email.go (#5569)
-rw-r--r--app/email.go4
-rw-r--r--i18n/en.json4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/email.go b/app/email.go
index 61ee52c15..cb2fa213a 100644
--- a/app/email.go
+++ b/app/email.go
@@ -105,13 +105,13 @@ func SendVerifyEmail(userId, userEmail, locale, siteURL string) *model.AppError
func SendSignInChangeEmail(email, method, locale, siteURL string) *model.AppError {
T := utils.GetUserTranslations(locale)
- subject := T("api.templates.singin_change_email.subject",
+ subject := T("api.templates.signin_change_email.subject",
map[string]interface{}{"SiteName": utils.ClientCfg["SiteName"]})
bodyPage := utils.NewHTMLTemplate("signin_change_body", locale)
bodyPage.Props["SiteURL"] = siteURL
bodyPage.Props["Title"] = T("api.templates.signin_change_email.body.title")
- bodyPage.Html["Info"] = template.HTML(T("api.templates.singin_change_email.body.info",
+ bodyPage.Html["Info"] = template.HTML(T("api.templates.signin_change_email.body.info",
map[string]interface{}{"SiteName": utils.ClientCfg["SiteName"], "Method": method}))
if err := utils.SendMail(email, subject, bodyPage.Render()); err != nil {
diff --git a/i18n/en.json b/i18n/en.json
index 167e350ce..c372b6d0a 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -2192,11 +2192,11 @@
"translation": "{{ .SiteName }} Team Setup"
},
{
- "id": "api.templates.singin_change_email.body.info",
+ "id": "api.templates.signin_change_email.body.info",
"translation": "You updated your sign-in method on {{ .SiteName }} to {{.Method}}.<br>If this change wasn't initiated by you, please contact your system administrator."
},
{
- "id": "api.templates.singin_change_email.subject",
+ "id": "api.templates.signin_change_email.subject",
"translation": "[{{ .SiteName }}] You updated your sign-in method on {{ .SiteName }}"
},
{