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.
This commit is contained in:
Bharat Mediratta
2009-01-28 08:15:56 +00:00
parent 66fae63558
commit 6220db47b3
4 changed files with 73 additions and 139 deletions

View File

@@ -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);
}