Skip to content

Commit

Permalink
Update login.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
quick007 committed Jan 16, 2024
1 parent 11ec778 commit c3bbfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api/auth/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}.<br/> <b>Do not share it with anyone</b>`,
html: true,
});
} catch (err) {
console.error(err)
return new Response(
JSON.stringify({ error: "An error occured while sending the confirmation email. Please try again." }),
{
Expand Down

0 comments on commit c3bbfd8

Please sign in to comment.