Skip to content

Node.js based forum software built for the modern web

anon user doesnt show up on users page anymore

Baris Usakli4f0901e16448
diff --git a/src/user.js b/src/user.js
index 5a2cc51cb7..71e588d719 100644
--- a/src/user.js
+++ b/src/user.js
@@ -102,8 +102,12 @@ var config = require('../config.js'),
RDB.keys('user:*', function(err, userkeys){
+ var anonUserIndex = userkeys.indexOf("user:0");
+ if(anonUserIndex !== -1) {
+ userkeys.splice(anonUserIndex, 1);
+ }
+
for(var i=0,ii=userkeys.length; i<ii; ++i) {
-
RDB.hgetall(userkeys[i], function(err, userdata) {
if(userdata && userdata.password)
@@ -115,7 +119,6 @@ var config = require('../config.js'),
callback(data);
});
}
-
});
}