Add a comment about disconnecting sessions when users or login tokens are deleted.

This commit is contained in:
David Glasser
2012-10-08 11:09:16 -07:00
parent 1333b9308a
commit e8e880566e

View File

@@ -331,6 +331,12 @@ _.extend(Meteor._LivedataSession.prototype, {
var self = this;
self.userId = userId;
this._rerunAllSubscriptions();
// XXX figure out the login token that was just used, and set up an observe
// on the user doc so that deleting the user or the login token disconnects
// the session. For now, if you want to make sure that your deleted users
// don't have any continuing sessions, you can restart the server, but we
// should make it automatic.
},
_startSubscription: function (handler, priority, sub_id, params) {