1、实现用户注册

2、实现验证码
3、完善文档评论功能
This commit is contained in:
lifei6671
2017-05-01 12:15:55 +08:00
parent ad67558b80
commit 5b5c5b73bc
26 changed files with 380 additions and 23 deletions

View File

@@ -13,6 +13,7 @@ import (
"github.com/astaxie/beego/logs"
"github.com/lifei6671/godoc/conf"
"github.com/lifei6671/gocaptcha"
)
// RegisterDataBase 注册数据库
@@ -105,5 +106,6 @@ func RegisterFunction() {
}
func init() {
gocaptcha.ReadFonts("./static/fonts", ".ttf")
gob.Register(models.Member{})
}