mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	refactor: add targetUid to email-change event
This commit is contained in:
		| @@ -204,7 +204,12 @@ UserEmail.confirmByCode = async function (code, sessionId) { | |||||||
| 	await Promise.all([ | 	await Promise.all([ | ||||||
| 		UserEmail.confirmByUid(confirmObj.uid), | 		UserEmail.confirmByUid(confirmObj.uid), | ||||||
| 		db.delete(`confirm:${code}`), | 		db.delete(`confirm:${code}`), | ||||||
| 		events.log({ type: 'email-change', oldEmail, newEmail: confirmObj.email }), | 		events.log({ | ||||||
|  | 			type: 'email-change', | ||||||
|  | 			oldEmail, | ||||||
|  | 			newEmail: confirmObj.email, | ||||||
|  | 			targetUid: confirmObj.uid, | ||||||
|  | 		}), | ||||||
| 	]); | 	]); | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user