diff --git a/config/strategies/local.js b/config/strategies/local.js index 5471473..ad56052 100644 --- a/config/strategies/local.js +++ b/config/strategies/local.js @@ -22,12 +22,12 @@ module.exports = function() { } if (!user) { return done(null, false, { - message: 'Unknown user' + message: 'Unknown user or invalid password' }); } if (!user.authenticate(password)) { return done(null, false, { - message: 'Invalid password' + message: 'Unknown user or invalid password' }); } @@ -35,4 +35,4 @@ module.exports = function() { }); } )); -}; \ No newline at end of file +};