mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 19:30:15 +01:00
fix issue with validation when google account has multiple spaces in name (#211)
This commit is contained in:
parent
3b4ed98c1d
commit
907f894ba7
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ const googleLogin = new GoogleStrategy(
|
|||
const newUser = await new User({
|
||||
provider: 'google',
|
||||
googleId: profile.id,
|
||||
username: profile.name.givenName + profile.name.familyName,
|
||||
username: profile.name.givenName,
|
||||
email: profile.emails[0].value,
|
||||
emailVerified: profile.emails[0].verified,
|
||||
name: `${profile.name.givenName} ${profile.name.familyName}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue