0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-21 23:41:11 +01:00

fix redirect

This commit is contained in:
slene 2014-03-15 20:52:48 +08:00
parent 9cdded911b
commit 37300dc0d7

2
web.go
View file

@ -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)