mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
more winston
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
var user = require('./user.js'),
|
||||
bcrypt = require('bcrypt'),
|
||||
RDB = require('./redis.js'),
|
||||
path = require('path');
|
||||
path = require('path'),
|
||||
winston = require('winston');
|
||||
|
||||
(function(Login){
|
||||
|
||||
@@ -27,7 +28,7 @@ var user = require('./user.js'),
|
||||
user.getUserField(uid, 'password', function(user_password) {
|
||||
bcrypt.compare(password, user_password, function(err, res) {
|
||||
if(err) {
|
||||
console.log(err);
|
||||
winston.err(err);
|
||||
next({
|
||||
status: "error",
|
||||
message: 'bcrypt compare error'
|
||||
|
||||
Reference in New Issue
Block a user