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

706 B
Raw Blame
import type { User } from '../types';

const DEFAULT_EMAIL_CHANGE_USER: User = {
  email: '[email protected]',
  name: 'Email Change User',
  password: 'securepassword789',
};

const DEFAULT_NEW_EMAIL = '[email protected]';

export function getEmailChangeUser(): User {
  return {
    email: process.env.E2E_EMAIL_CHANGE_USER_EMAIL ?? DEFAULT_EMAIL_CHANGE_USER.email,
    name: process.env.E2E_EMAIL_CHANGE_USER_NAME ?? DEFAULT_EMAIL_CHANGE_USER.name,
    password: process.env.E2E_EMAIL_CHANGE_USER_PASSWORD ?? DEFAULT_EMAIL_CHANGE_USER.password,
  };
}

export function getEmailChangeTarget(): string {
  return process.env.E2E_EMAIL_CHANGE_TARGET ?? DEFAULT_NEW_EMAIL;
}