Skip to content

Commit 9b02b74

Browse files
committed
touch ups to usercontroller and server.js
1 parent fb241d6 commit 9b02b74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/controllers/userController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ userController.verifyUser = (req, res, next) => {
5555
return next();
5656
} else {
5757
// if password does not match, redirect to ?
58-
return res.redirect('/login');
58+
return res.status(400).send('Incorrect password');
5959
}
6060
});
6161
}

server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ app.post(
3939
cookieController.setSSIDCookie,
4040
sessionController.startSession,
4141
(req, res) => {
42-
return res.status(200).json(res.locals.newUser);
42+
return res.status(200).json(res.locals.id);
4343
}
4444
);
4545

0 commit comments

Comments
 (0)