Fix template rendering and use verify email template
email html is weird, some stuff isn't supported.
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user