fix(gdpr): forbidden domain

This commit is contained in:
Sabe Jones
2020-02-28 13:30:41 +00:00
parent c9bb96d2be
commit e1f9cac37a

View File

@@ -39,7 +39,7 @@ async function deleteHabiticaData (user, email) {
{ _id: user._id }, { _id: user._id },
{ {
$set: { $set: {
'auth.local.email': user.auth.local.email ? email : `${truncatedEmail}@habitica.com`, 'auth.local.email': user.auth.local.email ? email : `${truncatedEmail}@example.com`,
'auth.local.hashed_password': '$2a$10$QDnNh1j1yMPnTXDEOV38xOePEWFd4X8DSYwAM8XTmqmacG5X0DKjW', 'auth.local.hashed_password': '$2a$10$QDnNh1j1yMPnTXDEOV38xOePEWFd4X8DSYwAM8XTmqmacG5X0DKjW',
'auth.local.passwordHashMethod': 'bcrypt', 'auth.local.passwordHashMethod': 'bcrypt',
}, },