summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-03-20 10:15:34 +0100
committerGitHub <noreply@github.com>2017-03-20 10:15:34 +0100
commit373bfea427fae33215e4d8fcb37b3bd0499ebb9c (patch)
tree4f106cf30348946668eedc52fb20121e980a5645 /lib
parent20534e0d1efabfcca28f9c446196022b988dbb6a (diff)
parente7dc1f43266220dbff2a2e7b96c681f6411274b9 (diff)
downloadnextcloud-server-373bfea427fae33215e4d8fcb37b3bd0499ebb9c.tar.gz
nextcloud-server-373bfea427fae33215e4d8fcb37b3bd0499ebb9c.zip
Merge pull request #3940 from nextcloud/downstream-27048
Add postLogout hook to finish sessions from external session managers…
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/Session.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index c03cbd5891b..4980318b554 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -14,6 +14,7 @@
* @author Robin McCorkell <robin@mccorkell.me.uk>
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Vincent Petry <pvince81@owncloud.com>
+ * @author Felix Rupp <kontakt@felixrupp.com>
*
* @license AGPL-3.0
*
@@ -70,6 +71,7 @@ use Symfony\Component\EventDispatcher\GenericEvent;
* - preRememberedLogin(string $uid)
* - postRememberedLogin(\OC\User\User $user)
* - logout()
+ * - postLogout()
*
* @package OC\User
*/
@@ -796,6 +798,7 @@ class Session implements IUserSession, Emitter {
$this->setToken(null);
$this->unsetMagicInCookie();
$this->session->clear();
+ $this->manager->emit('\OC\User', 'postLogout');
}
/**