Skip to content

Commit 6e1b274

Browse files
committed
Merge pull request auth0-blog#1 from Babeard/master
Fix authenticate with any password
2 parents 49086b5 + ab483ae commit 6e1b274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)