From 69e6d70c4bdede9770996409baeed962eedcd5e9 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sun, 15 Aug 2021 20:37:30 -0600 Subject: [PATCH] Remove some debugging --- cmd/simpleauth/main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/simpleauth/main.go b/cmd/simpleauth/main.go index 39caa7f..f0714bf 100644 --- a/cmd/simpleauth/main.go +++ b/cmd/simpleauth/main.go @@ -24,7 +24,6 @@ var successHtml []byte func rootHandler(w http.ResponseWriter, req *http.Request) { authenticated := false - log.Println(req.FormValue("passwd") == password) if _, passwd, _ := req.BasicAuth(); passwd == password { authenticated = true } @@ -37,7 +36,6 @@ func rootHandler(w http.ResponseWriter, req *http.Request) { authenticated = true } } - log.Println(authenticated) if authenticated { t := token.New(secret, time.Now().Add(lifespan))