Page 1 of 2

Demo for GoogleReCaptcha

PostPosted: 06 Jan 2015 02:29
by mrcarver
CG Gurus

I cant seem to get the new Google ReCaptcha working. In fact I cant even get it to render. Do you have a demo for this control? Is the fact that I am using templates the problem?

Please advise.

Regards,
Monte Carver

Re: Demo for GoogleReCaptcha

PostPosted: 08 Jan 2015 23:27
by kmccoy
Monte,

I can get it to render... Sometimes. It never allows you to click on it though. I asked CG for a working demo in another thread.

Make sure you request a Site Key and a Secret Key from Google.

Re: Demo for GoogleReCaptcha

PostPosted: 09 Jan 2015 10:43
by Jorge Sousa
In the last 2.5. develop version, already available for download, we replaced Recaptcha demo with GoogleRecaptcha, because the first one is going to be deprecated real soon by Google, if is not already.

Re: Demo for GoogleReCaptcha

PostPosted: 09 Jan 2015 16:15
by kmccoy
Jorge,

>we replaced Recaptcha demo with GoogleRecaptcha,

Yes, we know. The old ReCaptcha no longer works.

But that was not the question.

We need a working example of GoogleReCaptcha in actual use. It does not appear to work, so maybe we are doing something wrong with the properties.

Re: Demo for GoogleReCaptcha

PostPosted: 09 Jan 2015 17:07
by Jorge Sousa
Hi Kevin

It's working! Project / Frame

demos\JQReCaptcha.pas

Why do you say it is not?

Maybe you just have to get your own google dev keys.

Re: Demo for GoogleReCaptcha

PostPosted: 09 Jan 2015 18:27
by kmccoy
Yes, I saw the file, but I don't think that unit is actually part of the demo - There is no component page for GoogleReCaptcha on the demo - at least I could not find it.

There is an old CAPTCHA component (the one with the Pencil, Musical Note, Etc) in the demo, but no GoogleReCaptcha.

Yes, I have my own Keys from Google, and the GoogleReCaptcha component shows up on my web page. I cannot click on anything though. It just sits there and does nothing when clicked. My keys are registered to my base domain, so it should work on any of my servers (we have several sub-domains).

I am using ISAPI on Apache - I don't know if that would break anything.

IW 14,0.36, CGDT v2.5.0.8

Re: Demo for GoogleReCaptcha

PostPosted: 09 Jan 2015 19:11
by Jorge Sousa
Hi Kevin

You should look at JQueryDemo_V2, V3 is not fully ready.

The files, containing the demo of JQGoogleRecaptcha in V2 are attached again, just to be sure.

Re: Demo for GoogleReCaptcha

PostPosted: 13 Jan 2015 23:30
by kmccoy
Jorge Sousa wrote:You should look at JQueryDemo_V2, V3 is not fully ready.


I am not sure which version is on your web site, but it gives an SSL error when you click on the control. Even if you are successfully identified as a human, the Verify button always pops up a failure message in a dialog box.

The files, containing the demo of JQGoogleRecaptcha in V2 are attached again, just to be sure.


In my own tests, ReCaptcha.IsValid always returns False, even if the green checkmark appears in the control.

I am using frames and form inheritance - I don't know if that makes a difference.

Re: Demo for GoogleReCaptcha

PostPosted: 14 Jan 2015 10:17
by Alexander Bulei
Hi kmccoy,

I'm pretty sure, you are compiling for x64.
You need install OpenSSL for Win64, download here: http://slproweb.com/products/Win32OpenSSL.html

Best Regards.

Re: Demo for GoogleReCaptcha

PostPosted: 14 Jan 2015 16:11
by kmccoy
I am running on Win7-64, but my applications are all 32-bit.

Have you tried your own demo web site? It always returns "Invalid" when you click Verify after a successful Captcha.