mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 09:30:17 +00:00
fix #26 add xsrf function
This commit is contained in:
2
beego.go
2
beego.go
@ -44,6 +44,7 @@ var (
|
||||
EnbaleHotUpdate bool //enable HotUpdate default is false
|
||||
HttpServerTimeOut int64
|
||||
ErrorsShow bool
|
||||
XSRFKEY string
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -72,6 +73,7 @@ func init() {
|
||||
AppConfigPath = path.Join(AppPath, "conf", "app.conf")
|
||||
HttpServerTimeOut = 0
|
||||
ErrorsShow = true
|
||||
XSRFKEY = "beegoxsrf"
|
||||
ParseConfig()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user