This commit is contained in:
parent
39b05f8a40
commit
bfc0f6d6af
|
@ -438,12 +438,12 @@ class SpecialContact extends UnlistedSpecialPage
|
|||
|
||||
private function verifyCaptcha($recaptchaResponse)
|
||||
{
|
||||
global $wgRequest;
|
||||
global $wgRequest, $wgReCaptchaSecretKey;
|
||||
$x = $wgRequest->getHeader("REMOTE_ADDR");
|
||||
echo $x;
|
||||
$post_data = http_build_query(
|
||||
array(
|
||||
'secret' => CAPTCHA_SECRET,
|
||||
'secret' => $wgReCaptchaSecretKey,
|
||||
'response' => $_POST['g-recaptcha-response'],
|
||||
'remoteip' => $_SERVER['REMOTE_ADDR']
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue