From 2e065eddcb9a0d7a20571bb5db72ba0ee3e2bd8e Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Sun, 8 Sep 2024 10:19:49 +0100 Subject: [PATCH] Added an workaround for the broken email system --- src/pages/api/register.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/api/register.ts b/src/pages/api/register.ts index 32636243..e0f0b591 100644 --- a/src/pages/api/register.ts +++ b/src/pages/api/register.ts @@ -72,6 +72,9 @@ async function registerIndividual(req: NextApiRequest, res: NextApiResponse) { ...(passport_id ? {demographicInformation: {passport_id}} : {}), registrationDate: new Date().toISOString(), status: code ? "active" : "paymentDue", + // apparently there's an issue with the verification email system + // therefore we will skip this requirement for now + isVerified: true, }; await db.collection("users").insertOne(user); @@ -117,6 +120,9 @@ async function registerCorporate(req: NextApiRequest, res: NextApiResponse) { subscriptionExpirationDate: req.body.subscriptionExpirationDate || null, status: "paymentDue", registrationDate: new Date().toISOString(), + // apparently there's an issue with the verification email system + // therefore we will skip this requirement for now + isVerified: true, }; const defaultTeachersGroup: Group = {