Topic-icon ReCaptcha Issues

Active Subscriptions:

None
11 years 4 months ago #50880 by filiar
ReCaptcha Issues was created by filiar
As described above..

ReCaptcha should be turned on for the regular Joomla registration, but it prevents JFB login.

What should be the sollution?

Regards!
Iliya
The topic has been locked.
Support Specialist
11 years 4 months ago #50895 by mel
Replied by mel on topic ReCaptcha Issues
JFBConnect should work with the standard recaptcha. Whether you're using JFBConnect or Joomla as the registration component, it should work.

Please note, there's 2 settings for Recaptcha in Joomla:
* In the Joomla - Global Configuration area to setup the default captcha to use
* In the User Manager - Options area, you can specify which captcha to use for registration

There are known issues if you are trying to use K2's implementation of reCaptcha, as they hard-code it to check every time a new user is saved *and* that they tried to register from the Joomla registration page, which is incorrect behavior. If you're using K2 (or another extension's) reCaptcha, please try disabling it to see if this helps.

If you are just doing Joomla and not another extensions, please give more specific details on your configuration and what's going wrong, error messages, etc.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #50964 by filiar
Replied by filiar on topic ReCaptcha Issues
Sorry, I forgot to mention.

I have to integrate it with HikaShop's ReCaptcha plugin - www.hikashop.com/support/documentation/7...-with-recaptcha.html

Actually I use HS registration form not the default Joomla.

Thank You
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #50965 by filiar
Replied by filiar on topic ReCaptcha Issues
I asked the same question in HS support forum and there is the answer I received:

"Hi,

The ReCaptcha plugin is made to block any creation of a user in the front-end without the captcha data.
If you want to allow a component to create a user without any ReCaptcha check, you should add an authorization in the ReCaptcha plugin, for the function "onBeforeStoreUser" in the plugin.

Regards,"

So Please help me integrate both of them!
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #50966 by filiar
Replied by filiar on topic ReCaptcha Issues
This is the code where I should implement it.
function onBeforeStoreUser($user, $isnew, $new=null){
		if(!$isnew) return true;

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

		$this->_init();
		if(!$this->params->get('registration',1)){
			return true;
		}
		var_dump($_GET); exit;
		// Here shoul be JFB check!!
		if(JFB condition){
			return true;
		}
		return $this->_checkCaptcha();
	}

But what is the way to authorize JFBConnect component.

What should that condition look like?
if(JFB condition){
	return true;
}
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #50967 by filiar
Replied by filiar on topic ReCaptcha Issues
I think I did it! Thank You.
The topic has been locked.
Support Specialist
11 years 4 months ago #50968 by mel
Replied by mel on topic ReCaptcha Issues
Sorry for not answering any of the last posts. They all came in the middle of the night while we were sleeping. Glad you seem to have fixed the issue, but if you run into any more problems please let us know.

-Melissa
The topic has been locked.