Skip to content

Commit

Permalink
Updating the session to not do something so dumb when an existing use…
Browse files Browse the repository at this point in the history
…r tries to connect
  • Loading branch information
trobrock committed Feb 20, 2011
1 parent b4d0699 commit ef89ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authlogic_facebook_connect/session.rb
Expand Up @@ -85,7 +85,7 @@ def credentials=(value)

def associate_with_facebook_connect
facebook_session = controller.current_facebook_user.fetch
self.attempted_record = facebook_user_class.find(:first, :conditions => { :email => facebook_session.email, :username => controller.current_user.username })
self.attempted_record = controller.current_user

if self.attempted_record
self.attempted_record.send(:"#{facebook_uid_field}=", facebook_session.id)
Expand Down

0 comments on commit ef89ac6

Please sign in to comment.