From f4381ba366393479f953cd9919bd2ce84a346924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 7 Nov 2019 18:10:30 -0500 Subject: [PATCH] fix: add missing await to sendValidationEmail --- src/user/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/profile.js b/src/user/profile.js index 19f7e1cc65..ac2e7fbcf8 100644 --- a/src/user/profile.js +++ b/src/user/profile.js @@ -198,7 +198,7 @@ module.exports = function (User) { ]); if (meta.config.requireEmailConfirmation && newEmail) { - User.email.sendValidationEmail(uid, { + await User.email.sendValidationEmail(uid, { email: newEmail, subject: '[[email:email.verify-your-email.subject]]', template: 'verify_email',