Skip to content

Commit eba4f37

Browse files
committed
fix redirect on login button
applies fix indicated here: bitly#395
1 parent 81661a5 commit eba4f37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

oauthproxy.go

+5
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,11 @@ func (p *OAuthProxy) ManualSignIn(rw http.ResponseWriter, req *http.Request) (st
410410
}
411411

412412
func (p *OAuthProxy) GetRedirect(req *http.Request) (redirect string, err error) {
413+
if p.SkipProviderButton {
414+
redirect = req.RequestURI
415+
return
416+
}
417+
413418
err = req.ParseForm()
414419
if err != nil {
415420
return

0 commit comments

Comments
 (0)