anon user doesnt show up on users page anymore

v1.18.x
Baris Usakli 12 years ago
parent b0284487f2
commit 4f0901e164

@ -102,8 +102,12 @@ var config = require('../config.js'),
RDB.keys('user:*', function(err, userkeys){
for(var i=0,ii=userkeys.length; i<ii; ++i) {
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);
});
}
});
}

Loading…
Cancel
Save