Skip to content

Node.js based forum software built for the modern web

revoke sessions as soon as user is banned

psychobunnyc330218920ff
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);
};