优化代码

This commit is contained in:
Minho
2018-02-05 13:41:24 +08:00
parent 7e98f2c396
commit 065570513d
22 changed files with 47 additions and 39 deletions

View File

@@ -246,6 +246,7 @@ func (c *AccountController) FindPassword() {
data := map[string]interface{}{
"SITE_NAME": c.Option["SITE_NAME"],
"url": c.BaseUrl() + beego.URLFor("AccountController.FindPassword", "token", member_token.Token, "mail", email),
"BaseUrl": c.BaseUrl(),
}
body, err := c.ExecuteViewPathTemplate("account/mail_template.tpl", data)