mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 11:27:01 +02:00
revoke sessions as soon as user is banned
This commit is contained in:
@@ -36,6 +36,9 @@ module.exports = function (SocketUser) {
|
||||
});
|
||||
next();
|
||||
},
|
||||
function (next) {
|
||||
user.auth.revokeAllSessions(uid, next);
|
||||
},
|
||||
], next);
|
||||
}, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user