mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
fix(script): truly unique email for many-accounts scenarios
This commit is contained in:
parent
c79e3bea05
commit
6fe0d5568a
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ async function deleteHabiticaData (user, email) {
|
|||
'auth.local.hashed_password': '$2a$10$QDnNh1j1yMPnTXDEOV38xOePEWFd4X8DSYwAM8XTmqmacG5X0DKjW',
|
||||
'auth.local.passwordHashMethod': 'bcrypt',
|
||||
};
|
||||
if (!user.auth.local.email) set['auth.local.email'] = `${truncatedEmail}-gdpr@example.com`;
|
||||
if (!user.auth.local.email) set['auth.local.email'] = `${user._id}@example.com`;
|
||||
await User.update(
|
||||
{ _id: user._id },
|
||||
{ $set: set },
|
||||
|
|
|
|||
Loading…
Reference in a new issue