diff options
author | slene <vslene@gmail.com> | 2014-03-15 20:52:48 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-15 20:52:48 +0800 |
commit | 37300dc0d77383cc4e87685086639b6b0ac5f5a2 (patch) | |
tree | 018c6d084fa8cc722b292ca5c73b13a4f8dd078d /web.go | |
parent | 9cdded911b62825e448ee9e94b0b534351d4b3d8 (diff) | |
download | gitea-37300dc0d77383cc4e87685086639b6b0ac5f5a2.tar.gz gitea-37300dc0d77383cc4e87685086639b6b0ac5f5a2.zip |
fix redirect
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |