fix todolist removal

This commit is contained in:
2018-06-01 17:51:28 +03:00
parent 33b802d9e7
commit 9c354f5445
5 changed files with 19 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ router.delete(
router.post(
'/login',
passport.authenticate('local', { session: false }),
passport.authenticate('local', { session: false, failWithError: true }),
asyncHelper(async (req, res) => {
res.json({ success: true, data: req.user.toAuthJson() });
}),