silverstripe / silverstripe-session-manager

Allow users to manage and revoke access to multiple login sessions across devices.
BSD 3-Clause "New" or "Revised" License
9 stars 7 forks source link

FIX Manage LoginSession when Security::setCurrentUser() is called #87

Closed emteknetnz closed 3 years ago

emteknetnz commented 3 years ago

Issue https://github.com/silverstripe/recipe-cms/issues/47

It's a little weird calling the handlers directly from an extension. Code could be made nicer by refactoring out the logic in LogInAuthenticationHandler and LogOutAuthenticationHandler into a new Service class, but I don't think it's worth it at this stage