Commit 59a67720 authored by astaxie's avatar astaxie

xsrf's defaut time set to 0 & fix ts not use

parent 93e1206d
......@@ -77,7 +77,7 @@ func init() {
HttpServerTimeOut = 0
ErrorsShow = true
XSRFKEY = "beegoxsrf"
XSRFExpire = 60
XSRFExpire = 0
TemplateLeft = "{{"
TemplateRight = "}}"
ParseConfig()
......
......@@ -323,8 +323,6 @@ func (c *Controller) GetSecureCookie(Secret, key string) (string, bool) {
return "", false
}
ts, _ := strconv.ParseInt(timestamp, 0, 64)
buf := bytes.NewBufferString(val)
encoder := base64.NewDecoder(base64.StdEncoding, buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment