diff --git a/src/login.js b/src/login.js index ca0d7d5d1f..50ce805b21 100644 --- a/src/login.js +++ b/src/login.js @@ -35,7 +35,7 @@ var user = require('./user'), }); } - bcrypt.compare(password, userData.password || '', function(err, res) { + bcrypt.compare(password, userData.password, function(err, res) { if (err) { winston.err(err.message); next(new Error('bcrypt compare error')); @@ -181,4 +181,4 @@ var user = require('./user'), }); } -}(exports)); \ No newline at end of file +}(exports));