Arc Forumnew | comments | leaders | submitlogin
3 points by krapp 75 days ago | link | parent

It's just the default Recaptcha response found here[0]:

    {"success": true,  
     "challenge_ts": "2018-08-03T22:31:05Z",  
     "hostname": "testkey.google.com"}
[0]https://developers.google.com/recaptcha/docs/verify

edit: I went ahead and pushed my current working branch[1] if anyone wants to see it.

[1]https://github.com/kennethrapp/anarki/tree/dev-test



2 points by hjek 66 days ago | link

Great, that looks fine. Then you can just access the `success` key like this:

    ($ (require json))
    
    (if
       ((w/instring json "{\"success\":false}"
                          ($.read-json json))
                          'success)
       'success ; proceed to login
       'fail    ; must be a robot then
     )

-----