mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
banned users cant login, show error messages on failed logins
This commit is contained in:
@@ -157,7 +157,7 @@ var RDB = require('./redis.js'),
|
||||
break;
|
||||
}
|
||||
}
|
||||
callback(allread);
|
||||
callback(allread);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -281,7 +281,7 @@ var RDB = require('./redis.js'),
|
||||
}
|
||||
|
||||
Categories.hasReadCategory(cid, current_user, function(hasRead) {
|
||||
categoryData['badgeclass'] = (parseInt(categoryData.topic_count,10) === 0 || (hasRead && current_user != 0)) ? '' : 'badge-important';
|
||||
categoryData['badgeclass'] = (parseInt(categoryData.topic_count, 10) === 0 || (hasRead && current_user != 0)) ? '' : 'badge-important';
|
||||
|
||||
categories.push(categoryData);
|
||||
callback(null);
|
||||
|
||||
Reference in New Issue
Block a user