diff --git a/pkg/server/context.go b/pkg/server/context.go index e193a93..049ff5d 100644 --- a/pkg/server/context.go +++ b/pkg/server/context.go @@ -247,7 +247,7 @@ func (c *Context) File(name string) (io.Reader, string, error) { // CheckXsrf validates the xsrf token func (c *Context) CheckXsrf() (ok bool) { - ok = checkXsrf(c.Form("token"), c.Token.RawSig()[:keySize]) + ok = checkXsrf(c.Form("token"), c.Token.RawSig()) if !ok { c.Error("wrong csrf token") }