+1
-1
src/webapp/api.v
+1
-1
src/webapp/api.v
···
24
24
// before doing *anything*, check the captchas
25
25
if app.config.hcaptcha.enabled {
26
26
token := ctx.form['h-captcha-response']
27
-
response := http.post('https://api.hcaptcha.com/siteverify', '{
27
+
response := http.post_json('https://api.hcaptcha.com/siteverify', '{
28
28
"secret": "${app.config.hcaptcha.secret}",
29
29
// "remoteip": "${ctx.ip()}",
30
30
"response": "${token}"