Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
overleaf
Commits
a8557bb1
Commit
a8557bb1
authored
Mar 24, 2017
by
James Allen
Browse files
Don't find holding accounts with a hashed password
parent
21b15c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
migrations/5_remove_holding_accounts.coffee
View file @
a8557bb1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment