Skip to content

Commit

Permalink
feat(users): Fix "signin" promise return warning
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdaigle committed Jun 30, 2016
1 parent 7f3612a commit 3f39b65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/users/server/config/strategies/local.js
Expand Up @@ -22,9 +22,11 @@ module.exports = function() {
})
.then(function(user) {
if (!user || !user.authenticate(user, password)) {
return done(null, false, {
done(null, false, {
message: 'Invalid username or password'
});

return null;
}

done(null, user);
Expand Down

0 comments on commit 3f39b65

Please sign in to comment.