mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
refactor: show warning if there is no email for validation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user