Skip to content
Snippets Groups Projects
Commit 373bfea4 authored by Lukas Reschke's avatar Lukas Reschke Committed by GitHub
Browse files

Merge pull request #3940 from nextcloud/downstream-27048

Add postLogout hook to finish sessions from external session managers…
parents 20534e0d e7dc1f43
No related branches found
No related tags found
Loading
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
* @author Robin McCorkell <robin@mccorkell.me.uk> * @author Robin McCorkell <robin@mccorkell.me.uk>
* @author Thomas Müller <thomas.mueller@tmit.eu> * @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Vincent Petry <pvince81@owncloud.com> * @author Vincent Petry <pvince81@owncloud.com>
* @author Felix Rupp <kontakt@felixrupp.com>
* *
* @license AGPL-3.0 * @license AGPL-3.0
* *
...@@ -70,6 +71,7 @@ use Symfony\Component\EventDispatcher\GenericEvent; ...@@ -70,6 +71,7 @@ use Symfony\Component\EventDispatcher\GenericEvent;
* - preRememberedLogin(string $uid) * - preRememberedLogin(string $uid)
* - postRememberedLogin(\OC\User\User $user) * - postRememberedLogin(\OC\User\User $user)
* - logout() * - logout()
* - postLogout()
* *
* @package OC\User * @package OC\User
*/ */
...@@ -796,6 +798,7 @@ class Session implements IUserSession, Emitter { ...@@ -796,6 +798,7 @@ class Session implements IUserSession, Emitter {
$this->setToken(null); $this->setToken(null);
$this->unsetMagicInCookie(); $this->unsetMagicInCookie();
$this->session->clear(); $this->session->clear();
$this->manager->emit('\OC\User', 'postLogout');
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment