spree/spree_social — pull request #33 by sbounmy (2012-04-30 22:26:31+00:00)
Title: associate authentication to user with same email

I've encountered the following scenario :

1) An user logs in for the first time with facebook.
2) And delete his facebook authentication methods.
3) Then logs out.

When user tries to login again with his facebook account, it states that the email is already taken and tell him to use a new email (create a new user).

I don't know if this is a personal feature but this PR implement the following solution :
When an user logs in with omniauth, and the email already belongs to an user, it adds a new user_authentication and sign him in.