diff --git a/packages/features/auth/signup/handlers/selfHostedHandler.ts b/packages/features/auth/signup/handlers/selfHostedHandler.ts index 6e56f2bd01..502f9902b7 100644 --- a/packages/features/auth/signup/handlers/selfHostedHandler.ts +++ b/packages/features/auth/signup/handlers/selfHostedHandler.ts @@ -50,17 +50,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) if (team) { const teamMetadata = teamMetadataSchema.parse(team?.metadata); - // if (IS_CALCOM && (!teamMetadata?.isOrganization || !!team.parentId)) { - // const checkUsername = await checkPremiumUsername(username); - // if (checkUsername.premium) { - // // This signup page is ONLY meant for team invites and local setup. Not for every day users. - // // In singup redesign/refactor coming up @sean will tackle this to make them the same API/page instead of two. - // return res.status(422).json({ - // message: "Sign up from https://cal.com/signup to claim your premium username", - // }); - // } - // } - const user = await prisma.user.upsert({ where: { email: userEmail }, update: {