From c3bbfd83d7685618e86f168f0d24730c5798e0d9 Mon Sep 17 00:00:00 2001
From: Lukas <69743171+quick007@users.noreply.github.com>
Date: Mon, 15 Jan 2024 17:14:58 -0800
Subject: [PATCH] Update login.ts
---
routes/api/auth/login.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/routes/api/auth/login.ts b/routes/api/auth/login.ts
index 0f5ac53..41a7446 100644
--- a/routes/api/auth/login.ts
+++ b/routes/api/auth/login.ts
@@ -45,13 +45,13 @@ export const handler: Handlers<{ email: string; otp: string }> = {
}
const otp = await generateOTP(email);
- console.log("test")
try {
await sendEmail([email], "Your Events Authorization Code", {
content: `Your one time login code is ${otp}.
Do not share it with anyone`,
html: true,
});
} catch (err) {
+ console.error(err)
return new Response(
JSON.stringify({ error: "An error occured while sending the confirmation email. Please try again." }),
{