diff --git a/config.go b/config.go index 9834ac45..1ffe52d1 100644 --- a/config.go +++ b/config.go @@ -77,7 +77,7 @@ func init() { HttpServerTimeOut = 0 ErrorsShow = true XSRFKEY = "beegoxsrf" - XSRFExpire = 60 + XSRFExpire = 0 TemplateLeft = "{{" TemplateRight = "}}" ParseConfig() diff --git a/controller.go b/controller.go index f036f9cb..74c55b74 100644 --- a/controller.go +++ b/controller.go @@ -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)