Skip to content

Commit

Permalink
Fix non-redirect login issue
Browse files Browse the repository at this point in the history
Signed-off-by: cassiozareck <cassiomilczareck@gmail.com>
  • Loading branch information
cassiozareck committed Jul 26, 2023
1 parent 3673200 commit 22dac0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routers/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 22dac0b

Please sign in to comment.