diff --git a/routes/auth.js b/routes/auth.js index d31a6101ed..f9b3f5f085 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -28,7 +28,7 @@ router.post('/login', async (req, res) => { try{ const user = await User.findOne( { - userName: req.body.user_name + username: req.body.user_name } );