stop logging cookie gets
This commit is contained in:
parent
b7b5f7610a
commit
1cd458c852
|
@ -36,8 +36,10 @@ func rootHandler(w http.ResponseWriter, req *http.Request) {
|
||||||
if cookie, err := req.Cookie(CookieName); err == nil {
|
if cookie, err := req.Cookie(CookieName); err == nil {
|
||||||
t, _ := token.ParseString(cookie.Value)
|
t, _ := token.ParseString(cookie.Value)
|
||||||
if t.Valid(secret) {
|
if t.Valid(secret) {
|
||||||
authenticated = true
|
// Bypass logging and cookie setting:
|
||||||
mechanism = "Cookie"
|
// otherwise there is a torrent of logs
|
||||||
|
w.Write(successHtml)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue