mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
Update login.js
This commit is contained in:
@@ -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'));
|
||||||
|
|||||||
Reference in New Issue
Block a user