Node.js based forum software built for the modern web
fix: don't send validation email for pending emails
Barış Soner Uşaklı07957e82436e
diff --git a/src/user/profile.js b/src/user/profile.jsindex c150675d6a..3009d0a3d5 100644--- a/src/user/profile.js+++ b/src/user/profile.js@@ -282,6 +282,9 @@ module.exports = function (User) {if (oldEmail === newEmail) {return;}+ if (await User.email.isValidationPending(uid, newEmail)) {+ return;+ }// 👉 Looking for email change logic? src/user/email.js (UserEmail.confirmByUid)if (newEmail) {