From 689b710c9e61646e62d3aea21d616402665d2f66 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 20 Jan 2023 10:43:06 -0500 Subject: Fix template rendering and use verify email template email html is weird, some stuff isn't supported. --- src/api/routes/auth/verify/resend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api') diff --git a/src/api/routes/auth/verify/resend.ts b/src/api/routes/auth/verify/resend.ts index 0c8c4ed9..d9a9cda5 100644 --- a/src/api/routes/auth/verify/resend.ts +++ b/src/api/routes/auth/verify/resend.ts @@ -33,7 +33,7 @@ router.post("/", route({}), async (req: Request, res: Response) => { throw new HTTPError("User does not have an email address", 400); } - await Email.sendVerificationEmail(req.user_id, user.email) + await Email.sendVerificationEmail(user, user.email) .then((info) => { console.log("Message sent: %s", info.messageId); return res.sendStatus(204); -- cgit 1.4.1