Skip to content

Commit

Permalink
Resolve RainLoop#2194
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Dec 18, 2022
1 parent 5785ad5 commit 2a86ab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/recaptcha/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function BeforeLogin()
$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', '')
));
Expand Down
2 changes: 1 addition & 1 deletion plugins/recaptcha/js/recaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit 2a86ab5

Please sign in to comment.