Remove o-auth account creation

Accounts can only be created with Github or email
This commit is contained in:
Berkeley Martinez
2016-04-21 20:35:19 -07:00
parent 428cf8135e
commit 8166bfbcd8
4 changed files with 86 additions and 96 deletions

View File

@ -1,5 +1,3 @@
import assign from 'object.assign';
const providerHash = {
facebook: ({ id }) => id,
twitter: ({ username }) => username,
@ -32,15 +30,16 @@ export function setProfileFromGithub(
name
}
) {
return assign(
return Object.assign(
user,
{ isGithubCool: true, isMigrationGrandfathered: false },
{
name,
email: user.email || githubEmail,
username: username.toLowerCase(),
location,
joinedGithubOn,
website,
isGithubCool: true,
picture,
githubId,
githubURL,