mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: logAttempt conditional
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user