Topic-icon The CAPTCHA solution was incorrect

Active Subscriptions:

None
6 years 11 months ago - 6 years 11 months ago #61711 by ChristopheMG
Edit: Nicolas from hikashop is apparently working on a new plugin...

Melissa,
Yes please I need a few more details,
I found the file in : plugins/system/recaptcha2/recaptcha2.php

I can see both methods: onBeforeUserCreate and onBeforeStoreUser
I think it's around this part in onBeforeStoreUser:
$components = array('com_user','com_users','com_alpharegistration','com_ccusers','com_virtuemart','com_hikashop','com_hikamarket','com_akeebasubs');

		if (!in_array(@$_REQUEST['option'],$components)) return true;

I tried to duplicate it in onBeforeUserCreate, to add ",'com_jfbconnect'"... No success

Thank you for your help, please find the full code (recaptcha2.php) > txt, here : recaptcha2
Last edit: 6 years 11 months ago by ChristopheMG.
The topic has been locked.
Support Specialist
6 years 11 months ago #61714 by mel
The change I made on my test site is on the onBeforeUserCreate method (starting around line 373 in my file).

After the following block:
$app = JFactory::getApplication();
if ($app->isAdmin() || (@$_REQUEST['option']=='com_updateme' && @$_REQUEST['ctrl']=='subscription' && @$_REQUEST['task']=='api')) return true;

I added this:
if(@$_REQUEST['option']=='com_jfbconnect')
   return true;

So my method looks like:
function onBeforeUserCreate(&$user, &$do){

		$app = JFactory::getApplication();
		if ($app->isAdmin() || (@$_REQUEST['option']=='com_updateme' && @$_REQUEST['ctrl']=='subscription' && @$_REQUEST['task']=='api')) return true;

       if(@$_REQUEST['option']=='com_jfbconnect')
            return true;

        $this->_init();
		if(!$this->params->get('registration',1)){
			return true;
		}


		$do = $this->_checkCaptcha();
	}
The topic has been locked.
Active Subscriptions:

None
6 years 11 months ago #61722 by ChristopheMG
Thanks !

Nicolas from hikashop has updated the hikashop recaptcha plugin, it works now.

Best regards,
Christophe.
The topic has been locked.
Support Specialist
6 years 11 months ago #61723 by mel
Glad we could help get it resolved. Let us know if you run into any other problems.

-Melissa
The topic has been locked.