mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
1、实现用户注册
2、实现验证码 3、完善文档评论功能
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user