Presume someone signs in using Facebook and no mapping is found. They get the view for loginregister which lets them either register or associate their account.
Let's say they choose to associate their account and then give a correct username and password. Will this automatically import their email from Facebook and replace it in Joomla? Because if not, that means that the Facebook email and account email will be out of sync, which isn't a great idea. My fear is that the code just creates an associated mapping but does not overwrite the email address.
This is especially concerning because all of my sites override all login features to not use username/password but, instead, use email/password. So if a user comes along and logs in with facebook, I actually only want their login associated if the emails match. Can this be done?
In other words, when a user logs in and there is no mapping, automatically map it if the user is authenticated with FB *and* there is an account, already active, with the email that FB provides...