summary refs log tree commit diff
path: root/src/api/routes/auth
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-01-20 10:43:06 -0500
committerPuyodead1 <puyodead@protonmail.com>2023-02-23 21:35:54 -0500
commit689b710c9e61646e62d3aea21d616402665d2f66 (patch)
tree6a63cf20ae97601bd2ee90067c47f358a0dd2ad0 /src/api/routes/auth
parentAdd other email templates (diff)
downloadserver-689b710c9e61646e62d3aea21d616402665d2f66.tar.xz
Fix template rendering and use verify email template
email html is weird, some stuff isn't supported.
Diffstat (limited to 'src/api/routes/auth')
-rw-r--r--src/api/routes/auth/verify/resend.ts2
1 files changed, 1 insertions, 1 deletions
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);