mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 18:07:26 +08:00
feat: removed pulling displayName from facebook/google (#2301)
This commit is contained in:
@@ -40,7 +40,7 @@ export default class FacebookStrategy extends OAuth2Strategy<
|
||||
protected async findOrCreateUser(
|
||||
tenant: Tenant,
|
||||
integration: Required<GQLFacebookAuthIntegration>,
|
||||
{ id, photos, emails, displayName }: Profile,
|
||||
{ id, photos, emails }: Profile,
|
||||
now = new Date()
|
||||
) {
|
||||
// Create the user profile that will be used to lookup the User.
|
||||
@@ -76,7 +76,6 @@ export default class FacebookStrategy extends OAuth2Strategy<
|
||||
this.mongo,
|
||||
tenant,
|
||||
{
|
||||
username: displayName,
|
||||
role: GQLUSER_ROLE.COMMENTER,
|
||||
email,
|
||||
emailVerified,
|
||||
|
||||
@@ -39,7 +39,7 @@ export default class GoogleStrategy extends OAuth2Strategy<
|
||||
protected async findOrCreateUser(
|
||||
tenant: Tenant,
|
||||
integration: Required<GQLGoogleAuthIntegration>,
|
||||
{ id, photos, emails, displayName }: Profile,
|
||||
{ id, photos, emails }: Profile,
|
||||
now = new Date()
|
||||
) {
|
||||
// Create the user profile that will be used to lookup the User.
|
||||
@@ -75,7 +75,6 @@ export default class GoogleStrategy extends OAuth2Strategy<
|
||||
this.mongo,
|
||||
tenant,
|
||||
{
|
||||
username: displayName,
|
||||
role: GQLUSER_ROLE.COMMENTER,
|
||||
email,
|
||||
emailVerified,
|
||||
|
||||
Reference in New Issue
Block a user