change to recaptcha servers.

change to recaptcha servers.

by Doug Bell -
Number of replies: 3

Hello,

 

recaptcha is migrating to different servers. Because of this, anyone using recaptcha with a SSL will start experiencing issues today. I was wondering if anyone knew where in moodle to set the recaptcha paths for moodle?

 

Recaptcha sent me the following message:

 

 

 The transition involves a very simple change to your code. Any time

> between now and April 11, you need to replace all instances of:

>

https://api-secure.recaptcha.net/XXX

 

> with:

>

https://www.google.com/recaptcha/api/XXX

 

 

where do i change this in moodle?

I am using moodle Moodle 1.9.9 (Build: 20100609)

Doug

Average of ratings: -
In reply to Doug Bell

Re: change to recaptcha servers.

by Mark Tomko -

I found the recaptcha server defined in the file:

lib/recaptchalib.php

We're using the latest 1.9.X branch, and the server is on line 39. I changed the line from:

define("RECAPTCHA_API_SECURE_SERVER", "https://api-secure.recaptcha.net");

to:

define("RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api");

and we have working captchas again. I hope that this change will get rolled up into an update, as I don't want to maintain any differences between our version and the live version, and I'm not enough of a Moodle expert to submit a patch.

In reply to Mark Tomko

Re: change to recaptcha servers.

by Jonathan Champ -
Picture of Core developers Picture of Plugin developers

This issue was fixed in Moodle 2.0 in October of 2010. I rolled a patch for 1.9.x on the following tracker issue: http://tracker.moodle.org/browse/MDL-27328