Пример #1
0
 def on_deleted(self, doc):
     '''
     :param doc: A deleted auth doc AKA a session
     :return:
     '''
     # notify that the session has ended
     app.on_session_end(doc['user'], doc['_id'])
Пример #2
0
 def on_deleted(self, doc):
     """
     :param doc: A deleted auth doc AKA a session
     :return:
     """
     # notify that the session has ended
     app.on_session_end(doc['user'], doc['_id'])
Пример #3
0
    def on_deleted(self, doc):
        """Runs on delete of a session

        :param doc: A deleted auth doc AKA a session
        :return:
        """
        # notify that the session has ended
        app.on_session_end(doc["user"], doc["_id"])
Пример #4
0
    def on_deleted(self, doc):
        """Runs on delete of a session

        :param doc: A deleted auth doc AKA a session
        :return:
        """
        # notify that the session has ended
        app.on_session_end(doc["user"], doc["_id"])
        self.set_user_last_activity(doc["user"], done=True)
Пример #5
0
    def on_deleted(self, doc):
        """Runs on delete of a session

        :param doc: A deleted auth doc AKA a session
        :return:
        """
        # Clear the session data when session has ended
        flask.session.pop("session_token", None)

        # notify that the session has ended
        app.on_session_end(doc["user"], doc["_id"])
        self.set_user_last_activity(doc["user"], done=True)