瀏覽代碼

Don't find holding accounts with a hashed password

James Allen 9 年之前
父節點
當前提交
930aa9c572
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      server-ce/migrations/5_remove_holding_accounts.coffee

+ 1 - 1
server-ce/migrations/5_remove_holding_accounts.coffee

@@ -8,7 +8,7 @@ module.exports = HoldingAccountMigration =
 	DRY_RUN: true
 	DRY_RUN: true
 
 
 	findHoldingAccounts: (callback = (error, users) ->) ->
 	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) ->) ->
 	deleteUserProjects: (user_id, callback = (error) ->) ->
 		# Holding accounts can't own projects, so only remove from 
 		# Holding accounts can't own projects, so only remove from