Permalink
Browse files

Ensures the facebook id is used for the finder as signed and unsigned…

… cookies store the facebook_id differently.
  • Loading branch information...
1 parent 277aead commit 6d38ca930384d9da20ebb588925ff9b1e2582e72 @james2m committed Dec 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/authlogic_facebook_shim/session/facebook.rb
@@ -25,7 +25,7 @@ def authenticating_with_facebook?
private
def validate_by_facebook
- facebook_uid = facebook_session.uid
+ facebook_uid = facebook_user.uid
self.attempted_record = klass.send(facebook_finder, facebook_uid)
if self.attempted_record || !facebook_auto_register?

0 comments on commit 6d38ca9

Please sign in to comment.