diff --git a/src/user/delete.js b/src/user/delete.js index 5b822fcd7f..3b60711e72 100644 --- a/src/user/delete.js +++ b/src/user/delete.js @@ -58,6 +58,9 @@ module.exports = function(User) { function (next) { deleteChats(uid, next); }, + function (next) { + User.auth.revokeAllSessions(uid, next); + }, function (next) { async.parallel([ function(next) { @@ -102,7 +105,8 @@ module.exports = function(User) { 'uid:' + uid + ':chats', 'uid:' + uid + ':chats:unread', 'uid:' + uid + ':chat:rooms', 'uid:' + uid + ':chat:rooms:unread', 'uid:' + uid + ':upvote', 'uid:' + uid + ':downvote', - 'uid:' + uid + ':ignored:cids', 'uid:' + uid + ':flag:pids' + 'uid:' + uid + ':ignored:cids', 'uid:' + uid + ':flag:pids', + 'uid:' + uid + ':sessions', 'uid:' + uid + ':sessionUUID:sessionId' ]; db.deleteAll(keys, next); },