If user has logged in through Twitter, and then logged out, they now have an account and an OauthToken for twitter. Now if they login through MySpace, and we have the confirmation email thing setup, when they enter their email, we should find the user by that email, and associate that account with them, not create a new user.
Any ideas where to start with this?
I would think that on line 45 of oauth/session.rb before creating a new user record we should do a find_or_create_by_email. The only problem is that I don't see the users email address within scope. I guess we would need to make a second call to that provider to retrieve the users info. Does that seem reasonable?