Arc Forumnew | comments | leaders | submitlogin
2 points by akkartik 2086 days ago | link | parent

Can you share the input JSON? Let's treat this as a bug and see if we can fix it.


3 points by krapp 2086 days ago | link

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 2077 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
     )

-----