Merge pull request #3030 from longhotsummer/fix-facebook-no-email
Facebook auth without an email should allow user to enter email
This commit is contained in:
commit
f0dda91364
|
@ -12,7 +12,7 @@ class Auth::FacebookAuthenticator < Auth::Authenticator
|
|||
facebook_hash = session_info[:facebook]
|
||||
|
||||
result.email = email = session_info[:email]
|
||||
result.email_valid = true
|
||||
result.email_valid = !email.blank?
|
||||
result.name = facebook_hash[:name]
|
||||
|
||||
result.extra_data = facebook_hash
|
||||
|
|
Loading…
Reference in New Issue