xsrf fix
This commit is contained in:
parent
db6d76769b
commit
cb611fbe3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue