Captcha (Webasyst and Google) always says 'wrong answer'.

I have installed the callback plugin (https://www.webasyst.ru/store/plugin/shop/callbk/) and enabled Captcha in it.
Now when I try to use the plugin, it always says the Captcha I put in was wrong. It does not matter if I use webasysts own Captcha or Google reCaptcha.

I contacted the author and he told me it is a problem of the framework/shop-script.

I cannot really immagine this, but I have not many options, how can I check if Captcha is configured correctly?

Just to be sure about the plugin, here is the part of the source that uses the captcha functionality:

protected function checkCaptcha($code)
{
$captcha_is_valid = false;
$captcha = wa()->getStorage()->get('captcha');

if (is_array($captcha)) {
foreach ($captcha as $app_id => $captcha_code) {
if (isset($captcha[$app_id]) && $captcha[$app_id] === $code) {
$captcha_is_valid = true;
unset($captcha[$app_id]);
wa()->getStorage()->set('captcha', $captcha);
}
}
}
return $captcha_is_valid;
}



2 answers

  • 1
    Alexander May 8, 2017 11:40 #

    I think the sourcecode I provided is irrelevant and that Captcha is fully handled in the template. That code is exactly as documented on this site.

  • 1
    I contacted the author and he told me it is a problem of the framework/shop-script.

    What exactly did he say about what the problem is? I suppose it was not simply "it is a problem of the framework/shop-script" without any technical details?

Add answer

To add a comment please sign up or login