fix xsrf and added nonce

This commit is contained in:
ston1th 2025-10-15 22:51:08 +02:00
commit 809627b538
208 changed files with 7166 additions and 4278 deletions

View file

@ -93,7 +93,7 @@ func (c *Context) Exec() {
c.Err = errors.New("template is nil")
return
}
c.Data.Token, c.Err = newXsrf(c.Token.RawSig()[:keySize])
c.Data.Token = newXsrf(c.Token.RawSig())
c.Data.Version = c.Srv.Config.Version
if c.Data.BodyTitle == "" {