Authlogic-facebook connect

Hi all,

Consider the application using authlogic plugin for simple signup and login

signup process:

i have registered one user using some email like “XXXX@gmail.com” in my application.

Login process

And in login page , …if i am using the same email id “XXXX@gmail.com” to login thro facebook connect option .

Getting two record separate in user table for signup and login in my db…

and my requirement is

i Need to update the existing record ,when i login thro faceboook option …

If anyone knows the solution???