diff --git a/assets/templates/form.html b/assets/templates/form.html index 7004cc6..3a4c8a9 100644 --- a/assets/templates/form.html +++ b/assets/templates/form.html @@ -6,12 +6,11 @@ - -
+
@@ -20,8 +19,7 @@ Accept Terms of Service -
- @@ -34,11 +32,8 @@ +
+
{{end}} diff --git a/server.go b/server.go index e7d0d81..b177212 100644 --- a/server.go +++ b/server.go @@ -123,9 +123,9 @@ func main() { e.POST("/", func(c echo.Context) error { c.Logger().Debug("POST /") - if !skipCaptcha && !checkRecaptcha(c, c.FormValue("g-recaptcha-response")) { + if !skipCaptcha && !checkRecaptcha(c, c.FormValue("token")) { code := http.StatusForbidden - return c.JSON(code, postResp{false, statuses[code]}) + return c.JSON(code, postResp{false, statuses[code] + ": robot check failed"}) } if c.FormValue("tos") != "on" { code := http.StatusPreconditionFailed