Node.js based forum software built for the modern web
fix: logAttempt conditional
Barış Soner Uşaklıa6c8e0ab4f4e
diff --git a/src/user/auth.js b/src/user/auth.jsindex 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([