summaryrefslogtreecommitdiffstats
path: root/models/mail.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 17:30:04 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 17:30:04 +0100
commit60c82a87805821ad6eaf5aeb58a3a266b56a30ff (patch)
treeddc3675e4133284dbe7fa1b2bbd10ed7d38ff6fc /models/mail.go
parentf6a11e0de1ab950b42679d6be9dc0f3ac86c3399 (diff)
downloadgitea-60c82a87805821ad6eaf5aeb58a3a266b56a30ff.tar.gz
gitea-60c82a87805821ad6eaf5aeb58a3a266b56a30ff.zip
More...
Diffstat (limited to 'models/mail.go')
-rw-r--r--models/mail.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/models/mail.go b/models/mail.go
index df5fd789bc..77856553cb 100644
--- a/models/mail.go
+++ b/models/mail.go
@@ -20,9 +20,9 @@ import (
)
const (
- MAIL_AUTH_ACTIVATE base.TplName = "auth/activate"
- MAIL_AUTH_ACTIVATE_EMAIL base.TplName = "auth/activate_email"
- MAIL_AUTH_RESET_PASSWORD base.TplName = "auth/reset_passwd"
+ MailAuthActivate base.TplName = "auth/activate"
+ MailAuthActivateEmail base.TplName = "auth/activate_email"
+ MailAuthResetPassword base.TplName = "auth/reset_passwd"
MAIL_AUTH_REGISTER_NOTIFY base.TplName = "auth/register_notify"
MAIL_ISSUE_COMMENT base.TplName = "issue/comment"
@@ -77,11 +77,11 @@ func SendUserMail(c *macaron.Context, u *User, tpl base.TplName, code, subject,
}
func SendActivateAccountMail(c *macaron.Context, u *User) {
- SendUserMail(c, u, MAIL_AUTH_ACTIVATE, u.GenerateActivateCode(), c.Tr("mail.activate_account"), "activate account")
+ SendUserMail(c, u, MailAuthActivate, u.GenerateActivateCode(), c.Tr("mail.activate_account"), "activate account")
}
func SendResetPasswordMail(c *macaron.Context, u *User) {
- SendUserMail(c, u, MAIL_AUTH_RESET_PASSWORD, u.GenerateActivateCode(), c.Tr("mail.reset_password"), "reset password")
+ SendUserMail(c, u, MailAuthResetPassword, u.GenerateActivateCode(), c.Tr("mail.reset_password"), "reset password")
}
// SendActivateAccountMail sends confirmation email.
@@ -92,7 +92,7 @@ func SendActivateEmailMail(c *macaron.Context, u *User, email *EmailAddress) {
"Code": u.GenerateEmailActivateCode(email.Email),
"Email": email.Email,
}
- body, err := mailRender.HTMLString(string(MAIL_AUTH_ACTIVATE_EMAIL), data)
+ body, err := mailRender.HTMLString(string(MailAuthActivateEmail), data)
if err != nil {
log.Error(3, "HTMLString: %v", err)
return