From c330218920ff4138e498c9f4b40dc90083f42240 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 5 May 2017 19:15:37 -0400 Subject: [PATCH] revoke sessions as soon as user is banned --- src/socket.io/user/ban.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/socket.io/user/ban.js b/src/socket.io/user/ban.js index 084307c017..8d31a2b341 100644 --- a/src/socket.io/user/ban.js +++ b/src/socket.io/user/ban.js @@ -36,6 +36,9 @@ module.exports = function (SocketUser) { }); next(); }, + function (next) { + user.auth.revokeAllSessions(uid, next); + }, ], next); }, callback); };