summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-15 05:53:13 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-15 05:53:13 -0400
commite9fdf1031da4bf3c1acff0377b1d125ad99274e6 (patch)
tree510af882f866b312d2b1b7e888a4432c26d5dbe2 /web.go
parent4b8e888437a9972459e73496d811ea30f105f06c (diff)
downloadgitea-e9fdf1031da4bf3c1acff0377b1d125ad99274e6.tar.gz
gitea-e9fdf1031da4bf3c1acff0377b1d125ad99274e6.zip
Clean code
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web.go b/web.go
index cb6ee4aece..24f01d68a8 100644
--- a/web.go
+++ b/web.go
@@ -62,7 +62,7 @@ func runWeb(*cli.Context) {
m.Use(sessions.Sessions("my_session", store))
// Routers.
- m.Get("/", auth.SignInRequire(false), routers.Home)
+ m.Get("/", auth.SignInRequire(true), routers.Home)
m.Any("/user/login", auth.SignOutRequire(), binding.BindIgnErr(auth.LogInForm{}), user.SignIn)
m.Any("/user/logout", auth.SignInRequire(true), user.SignOut)
m.Any("/user/sign_up", auth.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)