mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Fix recaptcha api request (#891)
This commit is contained in:
parent
18b39315e7
commit
509f81d2c8
2 changed files with 152 additions and 149 deletions
|
|
@ -1 +1 @@
|
||||||
2.1
|
2.2
|
||||||
|
|
@ -85,10 +85,13 @@ class RecaptchaPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
$bResult = false;
|
$bResult = false;
|
||||||
|
|
||||||
$sResult = $this->Manager()->Actions()->Http()->GetUrlAsString(
|
$sResult = $this->Manager()->Actions()->Http()->SendPostRequest(
|
||||||
'https://www.google.com/recaptcha/api/siteverify?secret='.
|
'https://www.google.com/recaptcha/api/siteverify',
|
||||||
\urlencode($this->Config()->Get('plugin', 'private_key', '')).'&response='.
|
array(
|
||||||
\urlencode($this->Manager()->Actions()->GetActionParam('RecaptchaResponse', '')));
|
'secret' => $this->Config()->Get('plugin', 'private_key', ''),
|
||||||
|
'response' => $this->Manager()->Actions()->GetActionParam('RecaptchaResponse', '')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
if ($sResult)
|
if ($sResult)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue