diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-28 08:15:56 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-28 08:15:56 +0000 |
commit | 6220db47b3e23c8d14cbecbdda34be83d47889ae (patch) | |
tree | 85f76e622fb90c1dd7de187af8dce2858333cc42 /modules/recaptcha/libraries | |
parent | 66fae635580890a2c25820b76f680baad11669af (diff) |
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.
Diffstat (limited to 'modules/recaptcha/libraries')
-rw-r--r-- | modules/recaptcha/libraries/Form_Recaptcha.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |