Node.js based forum software built for the modern web
refactor: show warning if there is no email for validation
Barış Soner Uşaklı84d3fe796961
diff --git a/src/user/email.js b/src/user/email.jsindex c14c9c93fc..9535d87415 100644--- a/src/user/email.js+++ b/src/user/email.js@@ -134,6 +134,7 @@ UserEmail.sendValidationEmail = async function (uid, options) {options.email = await user.getUserField(uid, 'email');}if (!options.email) {+ winston.warn(`[user/email] No email found for uid ${uid}`);return;}