summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-28 20:40:35 +0800
committerUnknwon <joe2010xtmf@163.com>2014-12-28 20:40:35 +0800
commit81a44e4cd0c4f4c2310b59624748ba0df9fcbe87 (patch)
tree249709802cbf57f476aad4a8ed389f9b4d51c65d /cmd
parent6a6636d4513b93555dd476e6d1883663e036e606 (diff)
downloadgitea-81a44e4cd0c4f4c2310b59624748ba0df9fcbe87.tar.gz
gitea-81a44e4cd0c4f4c2310b59624748ba0df9fcbe87.zip
fix API changes
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 2251ea9218..56df5fe721 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -133,10 +133,7 @@ func newMacaron() *macaron.Macaron {
m.Use(captcha.Captchaer(captcha.Options{
SubURL: setting.AppSubUrl,
}))
- m.Use(session.Sessioner(session.Options{
- Provider: setting.SessionProvider,
- Config: *setting.SessionConfig,
- }))
+ m.Use(session.Sessioner(setting.SessionConfig))
m.Use(csrf.Csrfer(csrf.Options{
Secret: setting.SecretKey,
SetCookie: true,