mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 09:30:17 +00:00
add XSRFExpire
This commit is contained in:
2
beego.go
2
beego.go
@ -46,6 +46,7 @@ var (
|
||||
ErrorsShow bool //set weather show errors
|
||||
XSRFKEY string //set XSRF
|
||||
EnableXSRF bool
|
||||
XSRFExpire int
|
||||
CopyRequestBody bool //When in raw application, You want to the reqeustbody
|
||||
)
|
||||
|
||||
@ -76,6 +77,7 @@ func init() {
|
||||
HttpServerTimeOut = 0
|
||||
ErrorsShow = true
|
||||
XSRFKEY = "beegoxsrf"
|
||||
XSRFExpire = 60
|
||||
ParseConfig()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user