Skip to content

Node.js based forum software built for the modern web

limit sessions displayed to 20

Barış Soner Uşaklıda24e342f2af
diff --git a/src/user/auth.js b/src/user/auth.js
index 29a79f39c4..b288f857f5 100644
--- a/src/user/auth.js
+++ b/src/user/auth.js
@@ -65,7 +65,7 @@ module.exports = function (User) {
}
async.waterfall([
- async.apply(db.getSortedSetRevRange, 'uid:' + uid + ':sessions', 0, -1),
+ async.apply(db.getSortedSetRevRange, 'uid:' + uid + ':sessions', 0, 19),
function (sids, next) {
_sids = sids;
async.map(sids, db.sessionStore.get.bind(db.sessionStore), next);