Skip to content

Commit fc3c035

Browse files
committed
Logical precedence problem fixed
1 parent aad6352 commit fc3c035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/user-routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ app.post('/sessions/create', function(req, res) {
4444
return res.status(401).send("The username or password don't match");
4545
}
4646

47-
if (!user.password === req.body.password) {
47+
if (!(user.password === req.body.password)) {
4848
return res.status(401).send("The username or password don't match");
4949
}
5050

0 commit comments

Comments
 (0)