Skip to content

Commit

Permalink
Fixed redirect after sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Oct 21, 2024
1 parent 412c4c6 commit 048f8ad
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 048f8ad

Please sign in to comment.