mirror of
https://github.com/astaxie/beego.git
synced 2025-07-12 09:51:01 +00:00
xsrf's defaut time set to 0 & fix ts not use
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user