|
|
@ -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) {
|
|
|
|
if (err) {
|
|
|
|
winston.err(err.message);
|
|
|
|
winston.err(err.message);
|
|
|
|
next(new Error('bcrypt compare error'));
|
|
|
|
next(new Error('bcrypt compare error'));
|
|
|
@ -181,4 +181,4 @@ var user = require('./user'),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}(exports));
|
|
|
|
}(exports));
|
|
|
|