Commit a8557bb1 authored by James Allen's avatar James Allen
Browse files

Don't find holding accounts with a hashed password

parent 21b15c8c
......@@ -8,7 +8,7 @@ module.exports = HoldingAccountMigration =
DRY_RUN: true
findHoldingAccounts: (callback = (error, users) ->) ->
db.users.find({holdingAccount: true}, {holdingAccount: 1, email: 1}, callback)
db.users.find({holdingAccount: true, hashedPassword: { $exists: false }}, {holdingAccount: 1, email: 1}, callback)
deleteUserProjects: (user_id, callback = (error) ->) ->
# Holding accounts can't own projects, so only remove from
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment