stop logging cookie gets

This commit is contained in:
Neale Pickett 2022-03-05 18:24:08 -07:00
parent b7b5f7610a
commit 1cd458c852
1 changed files with 4 additions and 2 deletions

View File

@ -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
} }
} }