FEATURE: Import facebook avatars when logging in via facebook

FIX: warning about popup dimensions when using facebook login

Rules are:

- On account creation we always import
- If you already have an avatar uploaded, nothing is changed
- If you have no avatar uploaded, we upload from facebook on login
- If you have no avatar uploaded, we select facebook unless gravatar already selected

This also fixes SSO issues where on account creation accounts had missing avatar uploads
This commit is contained in:
Sam
2016-09-19 15:10:02 +10:00
parent 72f9369966
commit 5b3cd3fac9
6 changed files with 83 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
class AddAvatarUrlToFacebookInfo < ActiveRecord::Migration
def change
add_column :facebook_user_infos, :avatar_url, :string
end
end