From a6c8e0ab4f4e778baa04ded1ae612b490c51a86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 10 Dec 2018 14:40:11 -0500 Subject: [PATCH] fix: logAttempt conditional --- src/user/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([