post login fixed

This commit is contained in:
Deolys 2024-05-22 22:42:58 +03:00
parent 7c3132c54b
commit 1aa0c36c84

View File

@ -71,7 +71,7 @@ router.post('/login', (request, response) => {
const user = users.data.find(user => user.email === email && user.password === password);
if (!user) {
response.status(401).send('Invalid credentials');
return response.status(401).send('Invalid credentials');
}
const responseObject = {