Node.js based forum software built for the modern web
refactor: add targetUid to email-change event
Barış Soner Uşaklı4e5340d260c9
diff --git a/src/user/email.js b/src/user/email.jsindex 9a18a62e34..c54a986828 100644--- a/src/user/email.js+++ b/src/user/email.js@@ -204,7 +204,12 @@ UserEmail.confirmByCode = async function (code, sessionId) {await Promise.all([UserEmail.confirmByUid(confirmObj.uid),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,+ }),]);};