diff --git a/pkg/server/context.go b/pkg/server/context.go index 4ba16e9..cfccc25 100644 --- a/pkg/server/context.go +++ b/pkg/server/context.go @@ -226,7 +226,7 @@ func (c *Context) Forwarded() (ret string) { // 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") }