Skip to content

Commit

Permalink
Fix redirect parameter for login with 2FA (#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
nono authored Aug 27, 2019
1 parent 8011132 commit ab356ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ func login(c echo.Context) error {
v := url.Values{}
v.Add("two_factor_token", string(twoFactorToken))
v.Add("long_run_session", strconv.FormatBool(longRunSession))
if loc := c.FormValue("redirect"); loc != "" {
v.Add("redirect", loc)
}

if wantsJSON(c) {
return c.JSON(http.StatusOK, echo.Map{
Expand Down

0 comments on commit ab356ca

Please sign in to comment.