fix xsrf and added nonce
This commit is contained in:
parent
6476ebc781
commit
809627b538
208 changed files with 7166 additions and 4278 deletions
|
|
@ -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 == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue