mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-17 15:29:55 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user