mirror of
https://github.com/astaxie/beego.git
synced 2025-02-16 22:47:02 +00:00
xsrf's defaut time set to 0 & fix ts not use
This commit is contained in:
parent
93e1206d60
commit
59a67720b4
@ -77,7 +77,7 @@ func init() {
|
|||||||
HttpServerTimeOut = 0
|
HttpServerTimeOut = 0
|
||||||
ErrorsShow = true
|
ErrorsShow = true
|
||||||
XSRFKEY = "beegoxsrf"
|
XSRFKEY = "beegoxsrf"
|
||||||
XSRFExpire = 60
|
XSRFExpire = 0
|
||||||
TemplateLeft = "{{"
|
TemplateLeft = "{{"
|
||||||
TemplateRight = "}}"
|
TemplateRight = "}}"
|
||||||
ParseConfig()
|
ParseConfig()
|
||||||
|
@ -323,8 +323,6 @@ func (c *Controller) GetSecureCookie(Secret, key string) (string, bool) {
|
|||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
|
|
||||||
ts, _ := strconv.ParseInt(timestamp, 0, 64)
|
|
||||||
|
|
||||||
buf := bytes.NewBufferString(val)
|
buf := bytes.NewBufferString(val)
|
||||||
encoder := base64.NewDecoder(base64.StdEncoding, buf)
|
encoder := base64.NewDecoder(base64.StdEncoding, buf)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user