Skip to content

Commit 82a899c

Browse files
authored
fix issue with validation when google account has multiple spaces in name (danny-avila#211)
1 parent 7641000 commit 82a899c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/strategies/googleStrategy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const googleLogin = new GoogleStrategy(
2828
const newUser = await new User({
2929
provider: 'google',
3030
googleId: profile.id,
31-
username: profile.name.givenName + profile.name.familyName,
31+
username: profile.name.givenName,
3232
email: profile.emails[0].value,
3333
emailVerified: profile.emails[0].verified,
3434
name: `${profile.name.givenName} ${profile.name.familyName}`,

0 commit comments

Comments
 (0)