Closed xvbnm48 closed 2 years ago
for the solution is to make the logic on checking the password incorrectly with if and then returning the error message, for example like this:
if (!validPassword) {
return res.status(400).json("wrong password");
}
error when sending a request whose data is wrong, such as in the login route, after sending the wrong data request, an error occurs on the nodeJs server
example