summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-15 20:52:48 +0800
committerslene <vslene@gmail.com>2014-03-15 20:52:48 +0800
commit37300dc0d77383cc4e87685086639b6b0ac5f5a2 (patch)
tree018c6d084fa8cc722b292ca5c73b13a4f8dd078d /web.go
parent9cdded911b62825e448ee9e94b0b534351d4b3d8 (diff)
downloadgitea-37300dc0d77383cc4e87685086639b6b0ac5f5a2.tar.gz
gitea-37300dc0d77383cc4e87685086639b6b0ac5f5a2.zip
fix redirect
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 07f2aa251d..ad19a5da01 100644
--- a/web.go
+++ b/web.go
@@ -49,7 +49,7 @@ func runWeb(*cli.Context) {
m.Use(middleware.InitContext())
// Routers.
- m.Get("/", middleware.SignInRequire(true), routers.Home)
+ m.Get("/", middleware.SignInRequire(false), routers.Home)
m.Any("/user/login", middleware.SignOutRequire(), binding.BindIgnErr(auth.LogInForm{}), user.SignIn)
m.Any("/user/logout", middleware.SignInRequire(true), user.SignOut)
m.Any("/user/sign_up", middleware.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)