aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFChannel <>2021-04-26 12:35:50 -0700
committerFChannel <>2021-04-26 12:35:50 -0700
commiteda3cae276181509caad126eda0f1c0c0aed1963 (patch)
treeeeafa099a7a3bb2e378df1d82ec700dea9af036b
parent4bd1944ae847a44ec8cd1996dc26145f6af08ead (diff)
close reported fix
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 2e2bc0f..43ea539 100644
--- a/main.go
+++ b/main.go
@@ -789,7 +789,7 @@ func main() {
return
}
- if(!CheckCaptcha(db, captcha)) {
+ if(close != "1" && !CheckCaptcha(db, captcha)) {
w.WriteHeader(http.StatusBadRequest)
w.Write([]byte("captcha required"))
return