revoke sessions as soon as user is banned

This commit is contained in:
psychobunny
2017-05-05 19:15:37 -04:00
parent 17ca1d33fb
commit c330218920

View File

@@ -36,6 +36,9 @@ module.exports = function (SocketUser) {
});
next();
},
function (next) {
user.auth.revokeAllSessions(uid, next);
},
], next);
}, callback);
};