Topic-icon Automatic registration and JSPT

Active Subscriptions:

None
8 years 10 months ago #62228 by AppsProyectos
Alex, sorry if i wasn't clear. I have automatic registration enabled now. I prefer that method for simplicity, but the problem that i had was that if an automatic registration occurs, the user has no chance to select the profile type, but if i had automatic registration disabled, the user falls in a loops during registration process.

Now, with that change, if the session has the profile type selected and alternateflow is set to true, it means that the user clicks a social sign-in button and a registration process has been started, so i must to create the new account with the correct profile type.

I really dont prefer any core-hack. Please, test this with my setup (Jomsocial, JFBConnect and JSPT). It must work in any scenario (i think haha)

Regards,
JM
The topic has been locked.
Support Specialist
8 years 10 months ago #62293 by alzander
JM,
Woah, sorry for the delay. Ok, I understand what you're saying now with the code above. It seems like a really good solution to the problem by just checking the session state to see if the profile type has been selected yet or not. We will look further into the code to see how best to support this through a plugin. We really don't want to have 3rd party specific code inside the core JFBConnect features. That's best in JSPT profile plugin on it's own so it's neatly contained. Right now though, I don't think we have any triggers for a social profile plugin to decide whether to allow auto registration or normal registration, but I can see some advantages of opening that flexibility up.

I've added this to our todo list, but I can't guarantee when it will be done. Until then, please make sure to check your code and functionality whenever you apply a JFBConnect update.

Thanks,
Alex
The topic has been locked.