From e79d756d06ef3deee7c2792baff5371d1566f18a Mon Sep 17 00:00:00 2001 From: astaxie Date: Sat, 28 Sep 2013 22:22:54 +0800 Subject: [PATCH] #230 --- controller.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/controller.go b/controller.go index 00e35543..f966f934 100644 --- a/controller.go +++ b/controller.go @@ -375,16 +375,8 @@ func (c *Controller) CheckXsrfCookie() bool { } func (c *Controller) XsrfFormHtml() string { - var expire int64 - if c.XSRFExpire > 0 { - expire = int64(c.XSRFExpire) - } else { - expire = int64(XSRFExpire) - } - token := GetRandomString(15) - c.SetSecureCookie(XSRFKEY, "_xsrf", token, expire) return "" + c._xsrf_token + "\"/>" } func (c *Controller) GoToFunc(funcname string) {