mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 23:53:15 +00:00
Fix template rendering and use verify email template
email html is weird, some stuff isn't supported.
This commit is contained in:
1 parent
f337f2e785
commit
689b710c9e
8 files changed
+421
-323
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user