Skip to content

Commit 22dac0b

Browse files
committed
Fix non-redirect login issue
Signed-off-by: cassiozareck <[email protected]>
1 parent 3673200 commit 22dac0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/web/web.go

+3
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,12 @@ func registerRoutes(m *web.Route) {
374374
m.Get("/milestones", reqSignIn, reqMilestonesDashboardPageEnabled, user.Milestones)
375375

376376
// ***** START: User *****
377+
// Group without signOut required to allow logged-in users to access this route for redirection purposes
377378
m.Group("/user", func() {
378379
m.Get("/login", auth.SignIn)
379380
m.Post("/login", web.Bind(forms.SignInForm{}), auth.SignInPost)
381+
})
382+
m.Group("/user", func() {
380383
m.Group("", func() {
381384
m.Combo("/login/openid").
382385
Get(auth.SignInOpenID).

0 commit comments

Comments
 (0)