mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 12:16:17 +01:00
fix redirect
This commit is contained in:
parent
9cdded911b
commit
37300dc0d7
1 changed files with 1 additions and 1 deletions
2
web.go
2
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)
|
||||
|
|
Loading…
Reference in a new issue