mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
password should be passed to action hook, and it was being ovewritten
This commit is contained in:
@@ -34,8 +34,10 @@ var user = require('./user'),
|
||||
message: "user-banned"
|
||||
});
|
||||
}
|
||||
console.log(password);
|
||||
console.log(JSON.stringify(userData));
|
||||
|
||||
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'));
|
||||
|
||||
Reference in New Issue
Block a user