From 6220db47b3e23c8d14cbecbdda34be83d47889ae Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 28 Jan 2009 08:15:56 +0000 Subject: Simplify the recaptcha admin page. It's not guaranteed to verify your recaptcha private key properly anymore, but it's more intuitive to configure in the admin UI. --- modules/recaptcha/libraries/Form_Recaptcha.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/recaptcha/libraries') diff --git a/modules/recaptcha/libraries/Form_Recaptcha.php b/modules/recaptcha/libraries/Form_Recaptcha.php index 271045c2..307b4ef5 100644 --- a/modules/recaptcha/libraries/Form_Recaptcha.php +++ b/modules/recaptcha/libraries/Form_Recaptcha.php @@ -65,7 +65,8 @@ class Form_Recaptcha_Core extends Form_Input { $challenge = $input->post("recaptcha_challenge_field", "", true); $response = $input->post("recaptcha_response_field", "", true); if (!empty($challenge)) { - $this->_error = recaptcha::is_recaptcha_valid($challenge, $response); + $this->_error = recaptcha::is_recaptcha_valid( + $challenge, $response, module::get_var("recaptcha", "private_key")); if (!empty($this->_error)) { $this->add_error($this->_error, 1); } -- cgit v1.2.3