Merge remote-tracking branch 'origin/develop' into negue/flagpm

This commit is contained in:
negue
2018-11-29 19:02:01 +01:00
316 changed files with 18625 additions and 17558 deletions

View File

@@ -245,7 +245,9 @@ describe('Password Utilities', () => {
it('returns false if the user has no local auth', async () => {
let user = await generateUser({
auth: 'not an object with valid fields',
auth: {
facebook: {},
},
});
let res = await validatePasswordResetCodeAndFindUser(encrypt(JSON.stringify({
userId: user._id,