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

@@ -9,6 +9,8 @@ import (
// 登录用户的Session名
const LoginSessionName = "LoginSessionName"
const CaptchaSessionName = "__captcha__"
const RegexpEmail = `^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$`
const RegexpAccount = `^[a-zA-Z][a-zA-z0-9]{2,50}$`
@@ -39,7 +41,7 @@ const (
// app_key
func GetAppKey() (string) {
return beego.AppConfig.DefaultString("app_key","go-git-webhook")
return beego.AppConfig.DefaultString("app_key","godoc")
}
func GetDatabasePrefix() string {