mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: logAttempt conditional
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = function (User) {
|
|||||||
User.auth = {};
|
User.auth = {};
|
||||||
|
|
||||||
User.auth.logAttempt = function (uid, ip, callback) {
|
User.auth.logAttempt = function (uid, ip, callback) {
|
||||||
if (parseInt(uid, 10) <= 0) {
|
if (!(parseInt(uid, 10) > 0)) {
|
||||||
return setImmediate(callback);
|
return setImmediate(callback);
|
||||||
}
|
}
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
|
|||||||
Reference in New Issue
Block a user