lib/authlogic_connect/oauth/session.rb in jspooner-authlogic-connect-0.0.19 vs lib/authlogic_connect/oauth/session.rb in jspooner-authlogic-connect-0.0.20
- old
+ new
@@ -56,10 +56,10 @@
# If it's a facebook token lets look up the users email address
if self.attempted_record.has_token?(:facebook)
self.attempted_record.active_token = self.attempted_record.get_token(:facebook)
facebook = JSON.parse(self.attempted_record.active_token.get("/me"))
puts "////////////// FACEBOOK DETAILS #{facebook.inspect}"
- puts "////////////// FACEBOOK EMAIL #{facebook[:email]}"
+ puts "////////////// FACEBOOK EMAIL #{facebook[email]}"
if facebook[:email]
existing_user = klass.find_by_email(facebook[:email])
puts "////////////// FACEBOOK DETAILS YES YES YES YES #{existing_user} #{existing_user.inspect}"
if existing_user
# It would be nice to place this app specific code somewhere else