mirror fix and update

This commit is contained in:
Unknwon 2014-12-20 22:51:16 -05:00
parent a18decf4cc
commit 79537467da
4 changed files with 8 additions and 6 deletions

View file

@ -136,7 +136,7 @@ func newMacaron() *macaron.Macaron {
Provider: setting.SessionProvider,
Config: *setting.SessionConfig,
}))
m.Use(csrf.Generate(csrf.Options{
m.Use(csrf.Csrfer(csrf.Options{
Secret: setting.SecretKey,
SetCookie: true,
Header: "X-Csrf-Token",