|
|
@ -120,11 +120,16 @@ describe('authentication', function () {
|
|
|
|
assert(body);
|
|
|
|
assert(body);
|
|
|
|
assert.equal(body.username, 'regular');
|
|
|
|
assert.equal(body.username, 'regular');
|
|
|
|
assert.equal(body.email, 'regular@nodebb.org');
|
|
|
|
assert.equal(body.email, 'regular@nodebb.org');
|
|
|
|
|
|
|
|
db.getObject('uid:' + regularUid + ':sessionUUID:sessionId', function (err, sessions) {
|
|
|
|
|
|
|
|
assert.ifError(err);
|
|
|
|
|
|
|
|
assert(sessions);
|
|
|
|
|
|
|
|
assert(Object.keys(sessions).length > 0);
|
|
|
|
done();
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('should revoke all sessions', function (done) {
|
|
|
|
it('should revoke all sessions', function (done) {
|
|
|
|
var socketAdmin = require('../src/socket.io/admin');
|
|
|
|
var socketAdmin = require('../src/socket.io/admin');
|
|
|
|