diff options
author | FChannel <=> | 2021-01-31 23:18:21 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-31 23:18:21 -0800 |
commit | 3bedb51f6a878253cfdf10ab89c67312fcd93886 (patch) | |
tree | 8e81ca4bda88d590ffdacbb01555a59b92ed0fd6 /main.go | |
parent | 4a80553734f985dbbdf64b6c289a3985c0bc0880 (diff) |
preload metadata of video to see first frame
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -243,7 +243,6 @@ func main() { auth := CreateTripCode(verify.Code) auth = CreateTripCode(auth) - if CreateTripCode(auth) == code { w.WriteHeader(http.StatusOK) } else { @@ -266,7 +265,6 @@ func main() { w.WriteHeader(http.StatusForbidden) w.Write([]byte("404 no path")) - }) http.HandleFunc("/post", func(w http.ResponseWriter, r *http.Request){ @@ -780,7 +778,7 @@ func main() { return } - if(!CheckCaptcha(db, captcha)) { + if(r.FormValue("captchaCode") == "" || !CheckCaptcha(db, captcha)) { w.WriteHeader(http.StatusBadRequest) w.Write([]byte("captcha required")) return |