mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +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