Minor logging + comment fix
This commit is contained in:
parent
67339ae79a
commit
e1d518db11
4
main.go
4
main.go
@ -104,7 +104,7 @@ func handleCallback(w http.ResponseWriter, r *http.Request, qs url.Values,
|
|||||||
logger.WithFields(logrus.Fields{
|
logger.WithFields(logrus.Fields{
|
||||||
"csrf": csrfCookie.Value,
|
"csrf": csrfCookie.Value,
|
||||||
"state": state,
|
"state": state,
|
||||||
}).Warnf("CSRF cookie does not match state")
|
}).Warnf("Error validating csrf cookie: %v", err)
|
||||||
http.Error(w, "Not authorized", 401)
|
http.Error(w, "Not authorized", 401)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ func main() {
|
|||||||
// Setup logger
|
// Setup logger
|
||||||
log = CreateLogger(*logLevel, *logFormat)
|
log = CreateLogger(*logLevel, *logFormat)
|
||||||
|
|
||||||
// Backwards compatability
|
// Backwards compatibility
|
||||||
if *secret == "" && *cookieSecret != "" {
|
if *secret == "" && *cookieSecret != "" {
|
||||||
*secret = *cookieSecret
|
*secret = *cookieSecret
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user