diff options
author | Puyodead1 <puyodead@proton.me> | 2023-01-20 10:43:06 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@protonmail.com> | 2023-02-23 21:35:54 -0500 |
commit | 689b710c9e61646e62d3aea21d616402665d2f66 (patch) | |
tree | 6a63cf20ae97601bd2ee90067c47f358a0dd2ad0 /src/util/entities | |
parent | Add other email templates (diff) | |
download | server-689b710c9e61646e62d3aea21d616402665d2f66.tar.xz |
Fix template rendering and use verify email template
email html is weird, some stuff isn't supported.
Diffstat (limited to 'src/util/entities')
-rw-r--r-- | src/util/entities/User.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 66e10297..4a399ed9 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -386,7 +386,7 @@ export class User extends BaseClass { // send verification email if users aren't verified by default and we have an email if (!Config.get().defaults.user.verified && email) { - await Email.sendVerificationEmail(user.id, email) + await Email.sendVerificationEmail(user, email) .then((info) => { console.log("Message sent: %s", info.messageId); }) |