mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
This commit is contained in:
parent
5785ad511b
commit
2a86ab5753
2 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ class RecaptchaPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
$bResult = false;
|
$bResult = false;
|
||||||
|
|
||||||
$HTTP = \SnappyMail\HTTP\Request::factory();
|
$HTTP = \SnappyMail\HTTP\Request::factory();
|
||||||
$oResponse = $HTTP->doRequest('POST', 'https://www.google.com/recaptcha/api/siteverify', array(
|
$oResponse = $HTTP->doRequest('POST', 'https://www.recaptcha.net/recaptcha/api/siteverify', array(
|
||||||
'secret' => $this->Config()->Get('plugin', 'private_key', ''),
|
'secret' => $this->Config()->Get('plugin', 'private_key', ''),
|
||||||
'response' => $this->Manager()->Actions()->GetActionParam('RecaptchaResponse', '')
|
'response' => $this->Manager()->Actions()->GetActionParam('RecaptchaResponse', '')
|
||||||
));
|
));
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
} else if (!script) {
|
} else if (!script) {
|
||||||
script = doc.createElement('script');
|
script = doc.createElement('script');
|
||||||
// script.onload = ShowRecaptcha;
|
// script.onload = ShowRecaptcha;
|
||||||
script.src = 'https://www.google.com/recaptcha/api.js?onload=ShowRecaptcha&render=explicit&hl=' + doc.documentElement.lang;
|
script.src = 'https://www.recaptcha.net/recaptcha/api.js?onload=ShowRecaptcha&render=explicit&hl=' + doc.documentElement.lang;
|
||||||
doc.head.append(script);
|
doc.head.append(script);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue