mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-29 08:07:48 +01:00
fix todolist removal
This commit is contained in:
@@ -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() });
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user