Skip to content
Browse files

Updating the session to not do something so dumb when an existing use…

…r tries to connect
  • Loading branch information...
1 parent b4d0699 commit ef89ac6420734f308a20eff176f96b7b1fd3c224 @trobrock trobrock committed Feb 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/authlogic_facebook_connect/session.rb
View
2 lib/authlogic_facebook_connect/session.rb
@@ -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)

0 comments on commit ef89ac6

Please sign in to comment.
Something went wrong with that request. Please try again.