1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:30:54 +00:00

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

This commit is contained in:
astaxie 2013-09-25 23:07:54 +08:00
parent 93e1206d60
commit 59a67720b4
2 changed files with 1 additions and 3 deletions

View File

@ -77,7 +77,7 @@ func init() {
HttpServerTimeOut = 0
ErrorsShow = true
XSRFKEY = "beegoxsrf"
XSRFExpire = 60
XSRFExpire = 0
TemplateLeft = "{{"
TemplateRight = "}}"
ParseConfig()

View File

@ -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)