Posts by Sal • 1 point
2 posts
-
0
votes1
answer23
viewsA: error in authentication
had not called me, but instead of using the userModel.find(user => user.username === req.body.username) should use the userModel.findOne({username: req.body.username}) is that I was using a fake…
-
-1
votes1
answer23
viewsQ: error in authentication
Cannot read property 'username' of null Keeps giving this error I don’t know why, he can create a new user but can’t login, someone knows what is happening? app.post('/users', async (req, res) =>…