mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 18:16:36 +02:00
fix: email validation flow, so that it actually works, fixed event logging bug, new email verification template
This commit is contained in:
@@ -114,6 +114,8 @@ module.exports = function (User) {
|
||||
if (userData.email && userData.uid > 1) {
|
||||
User.email.sendValidationEmail(userData.uid, {
|
||||
email: userData.email,
|
||||
template: 'welcome',
|
||||
subject: `[[email:welcome-to, ${meta.config.title || meta.config.browserTitle || 'NodeBB'}]]`,
|
||||
}).catch(err => winston.error(`[user.create] Validation email failed to send\n[emailer.send] ${err.stack}`));
|
||||
}
|
||||
if (userNameChanged) {
|
||||
|
||||
Reference in New Issue
Block a user