You can set the "Enable Automatic Registration" to 'No'. That won't automatically create the user, but will then bring them to JFBConnect's own registration page where they can set their username, password and other profile fields (or confirm the data imported from the social network they chose).If we could eliminate automatic account creation when an unregistered user tries to login with JFBConnect, the problem would be solved. Is it possible to stop this?
USER wrote: You can set the "Enable Automatic Registration" to 'No'. That won't automatically create the user but will then bring them to JFBConnect's own registration page where they can set their username, password and other profile fields (or confirm the data imported from the social network they chose).
I don't think that's what you'd want either.
USER wrote: It sounds like you want the social buttons, but you want them to redirect to the PayPlans selection page if a user isn't registered.
It really sounds like you just want to hide the SCLogin module (or whatever methods you're using to show the social login buttons) and only show them on the PayPlans selection page (or the page after they select, I'm not sure). To do that, you can disable our module and use the {JFBCLogin} tag in the place that you want the buttons to show. I think that would do what you're looking for.. the user clearly sees buttons for "Register" which they click to select a plan and then will see the social registration options in the correct place. Similarly, you can have a simple "Login" button that goes to the Joomla or EasySocial login pages which let the user login with their choice of account there.
Yes, JFBConnect knows if the user is 'unknown' (and needs to register, either automatically or through the form) or already has an account (and therefore needs to be logged in). You can find that code in the /controllers/login.php file in the 'login' function.Can it distinguish between the two? If so, can you point me to the file/code responsible?
$jUserId = $userMapModel->getJoomlaUserId($providerUserId, $provider->systemName);
$jUser = JUser::getInstance($jUserId);
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.