Skip to content

Commit 29f251c

Browse files
committed
Merge pull request #45 from neilyoung/master
Logical precedence problem fixed
2 parents 91f67a3 + fc3c035 commit 29f251c

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)