Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix issue with validation when google account has multiple spaces in name (#211)

Dan Orlando907f894ba734
diff --git a/api/strategies/googleStrategy.js b/api/strategies/googleStrategy.js
index 768c0991b1..756e25d20d 100644
--- a/api/strategies/googleStrategy.js
+++ b/api/strategies/googleStrategy.js
@@ -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}`,