From 0ca36456fc0ccbfa1325cdacb07f56c39815057b Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Wed, 22 Nov 2023 07:51:22 +0000 Subject: [PATCH] revert --- routers/web/web.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routers/web/web.go b/routers/web/web.go index f8b745fb10b55..944167cd3c71e 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -487,9 +487,8 @@ func registerRoutes(m *web.Route) { m.Get("/milestones", reqSignIn, reqMilestonesDashboardPageEnabled, user.Milestones) // ***** START: User ***** - // "user/login" doesn't need signOut, then logged-in users can still access this route for redirection purposes by "/user/login?redirec_to=..." - m.Get("/user/login", auth.SignIn) m.Group("/user", func() { + m.Get("/login", auth.SignIn) m.Post("/login", web.Bind(forms.SignInForm{}), auth.SignInPost) m.Group("", func() { m.Combo("/login/openid").