diff --git a/src/user/auth.js b/src/user/auth.js index ec17711cc9..87bb3f5ef4 100644 --- a/src/user/auth.js +++ b/src/user/auth.js @@ -13,7 +13,7 @@ module.exports = function (User) { User.auth = {}; User.auth.logAttempt = function (uid, ip, callback) { - if (parseInt(uid, 10) <= 0) { + if (!(parseInt(uid, 10) > 0)) { return setImmediate(callback); } async.waterfall([