Remove o-auth account creation
Accounts can only be created with Github or email
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user