webstar-project stubs api #3

Merged
Deolys merged 2 commits from webstar-branch into master 2024-05-22 22:47:02 +03:00
Showing only changes of commit 1aa0c36c84 - Show all commits

View File

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