Skip to content

Commit

Permalink
fix redirect on login button
Browse files Browse the repository at this point in the history
applies fix indicated here: bitly#395
  • Loading branch information
systemizer committed Dec 3, 2017
1 parent 81661a5 commit eba4f37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ func (p *OAuthProxy) ManualSignIn(rw http.ResponseWriter, req *http.Request) (st
}

func (p *OAuthProxy) GetRedirect(req *http.Request) (redirect string, err error) {
if p.SkipProviderButton {
redirect = req.RequestURI
return
}

err = req.ParseForm()
if err != nil {
return
Expand Down

0 comments on commit eba4f37

Please sign in to comment.