From 99bdc5fcefc3bf98f70d7b50470ee87b7b4e116b Mon Sep 17 00:00:00 2001 From: stringsplit <77242831+nbitzz@users.noreply.github.com> Date: Fri, 4 Aug 2023 02:03:54 +0000 Subject: [PATCH] Fix email --- src/server/routes/authRoutes.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/routes/authRoutes.ts b/src/server/routes/authRoutes.ts index f665710..9c6be28 100644 --- a/src/server/routes/authRoutes.ts +++ b/src/server/routes/authRoutes.ts @@ -246,7 +246,7 @@ authRoutes.post("/change_username", requiresAccount, parser, (req,res) => { let verificationCodes = new Map() -authRoutes.post("/request_email_change", requiresAccount, (req,res) => { +authRoutes.post("/request_email_change", requiresAccount, parser, (req,res) => { let acc = res.locals.acc as Accounts.Account @@ -287,7 +287,6 @@ authRoutes.post("/request_email_change", requiresAccount, (req,res) => { let e = verificationCodes.get(acc?.id||"")?.expiry if (e) clearTimeout(e) verificationCodes.delete(acc?.id||"") - console.error(err?.toString()) ServeError(res, 500, err?.toString()) }) })