From e726048e0c6c37983401afccfbf923b9a6a33185 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 28 Jun 2021 15:00:37 -0400 Subject: [PATCH] fix(emails): don't automatically associate email during user creation if passed in at registration --- src/user/create.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/user/create.js b/src/user/create.js index bd7f54b3ba..90121be672 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -93,12 +93,6 @@ module.exports = function (User) { ['users:reputation', 0, userData.uid], ]; - if (userData.email) { - bulkAdd.push(['email:uid', userData.uid, userData.email.toLowerCase()]); - bulkAdd.push(['email:sorted', 0, `${userData.email.toLowerCase()}:${userData.uid}`]); - bulkAdd.push([`user:${userData.uid}:emails`, timestamp, `${userData.email}:${timestamp}`]); - } - if (userData.fullname) { bulkAdd.push(['fullname:sorted', 0, `${userData.fullname.toLowerCase()}:${userData.uid}`]); }