Skip to content

Commit

Permalink
Unsubscribe from all event sources on logout (#15378)
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin authored Jan 13, 2025
1 parent cf9d56f commit e826459
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewared/middlewared/plugins/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ async def logout(self, app):
Deauthenticates an app and if a token exists, removes that from the
session.
"""
await self.middleware.event_source_manager.unsubscribe_app(app)
await self.session_manager.logout(app)
return True

Expand Down

0 comments on commit e826459

Please sign in to comment.