afterlogic / webmail-lite-8

Open-source webmail script for existing IMAP server
https://afterlogic.org/webmail-lite-8
GNU Affero General Public License v3.0
335 stars 71 forks source link

reCaptcha #63

Closed glararan closed 4 years ago

glararan commented 4 years ago

Hi,

I just updated webmail to latest version, added google recaptcha v2 - checkbox type. Getting following error at login: reCAPTCHA unknown error.

What could be wrong?

afterlogic-support commented 4 years ago

We've noticed that issue as well, seems like something has changed on Google API side. Developers suggest adjusting modules/RecaptchaWebclientPlugin/Module.php file and replacing both the occurences of:

$oRecaptcha = new \ReCaptcha\ReCaptcha($sPrivateKey, new \ReCaptcha\RequestMethod\SocketPost());

with:

$oRecaptcha = new \ReCaptcha\ReCaptcha($sPrivateKey, new \ReCaptcha\RequestMethod\CurlPost());

or, if that one doesn't do the trick, with:

$oRecaptcha = new \ReCaptcha\ReCaptcha($sPrivateKey);

Let us know if either of those worked for you. Thanks.

glararan commented 4 years ago

@afterlogic-support thanks for supp.

Second one did the trick. Thanks