This commit is contained in:
Matthieu Lamalle 2019-11-28 14:39:20 +01:00
parent 290cb1edc6
commit 232cf26ac3
1 changed files with 1 additions and 1 deletions

View File

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