mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: don't send validation email for pending emails
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user