Skip to content

Commit

Permalink
fixes #4856
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Jul 15, 2016
1 parent f3c1e75 commit 60a97bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/accounts/session.js
Expand Up @@ -16,7 +16,7 @@ sessionController.revoke = function(req, res, next) {

async.waterfall([
function (next) {
db.getSortedSetRange('uid:' + req.uid + ':sessions', 0, -1, next);
db.getSortedSetRange('uid:' + res.locals.uid + ':sessions', 0, -1, next);
},
function (sids, done) {
async.eachSeries(sids, function(sid, next) {
Expand All @@ -38,7 +38,7 @@ sessionController.revoke = function(req, res, next) {
return next(new Error('[[error:no-session-found]]'));
}

user.auth.revokeSession(_id, req.uid, next);
user.auth.revokeSession(_id, res.locals.uid, next);
}
], function(err) {
if (err) {
Expand Down

0 comments on commit 60a97bc

Please sign in to comment.