diff --git a/routers/web/web.go b/routers/web/web.go index 6d5ccad484fa..c41c228ccf59 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -374,9 +374,12 @@ func registerRoutes(m *web.Route) { m.Get("/milestones", reqSignIn, reqMilestonesDashboardPageEnabled, user.Milestones) // ***** START: User ***** + // Group without signOut required to allow logged-in users to access this route for redirection purposes m.Group("/user", func() { m.Get("/login", auth.SignIn) m.Post("/login", web.Bind(forms.SignInForm{}), auth.SignInPost) + }) + m.Group("/user", func() { m.Group("", func() { m.Combo("/login/openid"). Get(auth.SignInOpenID).