mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 06:46:27 +00:00
This commit is contained in:
@@ -88,7 +88,7 @@ class RecaptchaPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||
$bResult = false;
|
||||
|
||||
$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', ''),
|
||||
'response' => $this->Manager()->Actions()->GetActionParam('RecaptchaResponse', '')
|
||||
));
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
} else if (!script) {
|
||||
script = doc.createElement('script');
|
||||
// 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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user