summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index df7c96b123..1da1f2500b 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -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",