Topic-icon Creating a Joomla account with dummy email adres?

Active Subscriptions:

None
11 years 9 months ago #24371 by petrei
Hi,
I am looking into JLinked and wonder if I can use it to get the desired functionality for a site I am building.
Users of the site need to exclusively login through LinkedIn and no other way of authentication should be allowed (since we only want users with LinkedIn accounts).
Users need to be able to comment and update on topics on the website so this means that under water they still need a Joomla account but this concept needs to be hidden for them.
Could I implement this using JLinked? I figure that after a LinkedIn authentication I could check if the LinkedIn user already has a Joomla account based on the ID. If it exists, authenticate this Joomla user, if not, create the Joomla account implicitly using a fake email and password? This email and password never need to be shown to the user since he does not need it.

Can this be implemented using JLinked, is it easy, or should I look for something else?

Thanks ahead for your answer!

Peter
The topic has been locked.
Support Specialist
11 years 9 months ago #24374 by alzander
Peter,
JLinked absolutely creates a 'standard' Joomla user underneath. We simply then have some functionality that says LinkedIn user 'bob' is really Joomla 'bob' and then log 'bob' into Joomla whenever they use the Login with LinkedIn button.

Adding some functionality to auto-generate an email address would actually be pretty simple. It would take a few little code changes here and there, but most of that functionality is already part of our JFBConnect extension, so it'd be easy to implement similarly in JLinked. The reason it's in JFBConnect and not JLinked currently is because LinkedIn doesn't provide a way to access a user's email address. If you don't want that, then it's pretty easy to auto-generate a username, make up an email address, and then pull in the rest of the user's profile as necessary (Full name, etc).

If interested, we can help you with what you're looking for. If you wanted to let the user fill out a registration form (including their email address so you could capture it), that functionality is already built into JLinked. After registration, they'd simply click the Login with LinkedIn button from them on to login using their LinkedIn credentials and never be aware there is an underlying Joomla user.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24376 by petrei
Hi Alex,
Thanks for your quick reply! I was under the impression that an email is a mandatory attribute for any Joomla account, but I might be wrong.
So, if all users only authenticate through LinkedIn, I need no dummy email/password combination at all, not even underwater dummy generated ones?

I might add a feature later to have users enrich their profile with an email address to be able to bulk email them but I think I will add a 'follow my company profile on Linked' button for bulk communication.

I am going to purchase JLinked and have a go with it! This will really lower the treshhold for participation for the project I am working on.

Regards,

Peter
The topic has been locked.
Support Specialist
11 years 9 months ago #24389 by alzander
Peter,
The User table within Joomla has to have 'something' in the email address column. Whether that's a valid email address or not is not required. For JFBConnect, we used to have the ability to not request the user's email from Facebook (we automatically require that now due to some changes from Facebook). In that case where the admin didn't want the email, we simply made one up, like This email address is being protected from spambots. You need JavaScript enabled to view it. The email obviously didn't work, but Joomla didn't care. 3rd party extensions won't care (though they may try to email the bogus address) and the user will never need to know that was created for them unless an extension shows it to them or they go to the Edit Details page (which can be hidden).

Hope that all helps, but if you run into issues or need the info on how to auto-generate a user account, just let us know. That may take a few days to get you the info, so I'd honestly suggest just getting JLinked setup normally and work on other aspects of the site while we get you the extra info you need.

Either way, good luck!
Alex
The topic has been locked.