fixing code redemption error string logging
This commit is contained in:
parent
8519e7ccae
commit
1a8bd70b46
@ -751,7 +751,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
|
|||||||
|
|
||||||
session, err := p.redeemCode(req.Host, req.Form.Get("code"))
|
session, err := p.redeemCode(req.Host, req.Form.Get("code"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Printf("Error redeeming code during OAuth2 callback: %s ", errorString)
|
logger.Printf("Error redeeming code during OAuth2 callback: %s ", err.Error())
|
||||||
p.ErrorPage(rw, 500, "Internal Error", "Internal Error")
|
p.ErrorPage(rw, 500, "Internal Error", "Internal Error")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user