diff --git a/common/models/User-Identity.js b/common/models/User-Identity.js index a69685cc29..87a7ffef57 100644 --- a/common/models/User-Identity.js +++ b/common/models/User-Identity.js @@ -19,11 +19,12 @@ function setProfileFromGithub( username }, { - location, - email: githubEmail, id: githubId, + 'avatar_url': picture, + email: githubEmail, 'created_at': joinedGithubOn, blog: website, + location, name } ) { @@ -36,6 +37,7 @@ function setProfileFromGithub( location, joinedGithubOn, website, + picture, githubId, githubURL, githubEmail, diff --git a/server/server.js b/server/server.js index 8a75517964..93a0f06d8d 100755 --- a/server/server.js +++ b/server/server.js @@ -52,11 +52,12 @@ function setProfileFromGithub( username }, { - location, - email: githubEmail, id: githubId, + 'avatar_url': picture, + email: githubEmail, 'created_at': joinedGithubOn, blog: website, + location, name } ) { @@ -69,6 +70,7 @@ function setProfileFromGithub( location, joinedGithubOn, website, + picture, githubId, githubURL, githubEmail,