summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-20 22:51:16 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-20 22:51:16 -0500
commit79537467da16a6eb877df20f295a447037092903 (patch)
tree0a4b6f1a12fb95749f0128d149937fa30eba8500 /cmd
parenta18decf4ccc9498f5fd394b03f77744bab89081b (diff)
downloadgitea-79537467da16a6eb877df20f295a447037092903.tar.gz
gitea-79537467da16a6eb877df20f295a447037092903.zip
mirror fix and update
Diffstat (limited to 'cmd')
-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",