Skip to content

Commit

Permalink
Merge pull request #108 from svera/fix-signin
Browse files Browse the repository at this point in the history
Fixed redirect after sign in
  • Loading branch information
svera authored Oct 21, 2024
2 parents 412c4c6 + 048f8ad commit d371bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/webserver/controller/auth/signin.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (a *Controller) SignIn(c *fiber.Ctx) error {
})

referer := string(c.Context().Referer())
if referer != "" && !strings.HasSuffix(referer, "login") {
if referer != "" && !strings.HasSuffix(referer, "sessions/new") {
return c.Redirect(referer)
}

Expand Down

0 comments on commit d371bb4

Please sign in to comment.