New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add postLogout hook to finish sessions from external session managers #27048

Merged
merged 3 commits into from Feb 6, 2017
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Diff settings

Always

Just for now

@@ -10,6 +10,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>
*
* @copyright Copyright (c) 2016, ownCloud GmbH.
* @license AGPL-3.0
@@ -66,6 +67,7 @@
* - preRememberedLogin(string $uid)
* - postRememberedLogin(\OC\User\User $user)
* - logout()
* - postLogout()
*
* @package OC\User
*/
@@ -725,6 +727,7 @@ public function logout() {
$this->setLoginName(null);
$this->unsetMagicInCookie();
$this->session->clear();
$this->manager->emit('\OC\User', 'postLogout');
}
/**
ProTip! Use n and p to navigate between commits in a pull request.