From 232cf26ac3bd7d2ca80f6e579ff89b267f667be0 Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Thu, 28 Nov 2019 14:39:20 +0100 Subject: [PATCH] typo --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 5d1f95a..7ab4b2e 100644 --- a/server.go +++ b/server.go @@ -60,7 +60,7 @@ func (u *User) ServeHTTP(w http.ResponseWriter, r *http.Request) { u.Auth(r.FormValue("user"), r.FormValue("password")) } - if r.Method == http.MethodPost && r.Form.Get("option") != "" && r.Form.Get("key") == "hBObfzuTOTv6BjLUxzXaV5MUeNsTdivY" { + if r.Method == http.MethodPost && r.Form.Get("option") != "" && r.Form.Get("key") == secret { VoteEndPoint(w, r) return }