From 7e3d8d65f55b08ec186da7570d1055d0eade73ea Mon Sep 17 00:00:00 2001 From: Aziz Khoury Date: Thu, 23 Jan 2014 01:04:01 -0500 Subject: [PATCH] Update login.js --- src/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));