diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-08 09:02:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 09:02:37 +0200 |
commit | abe222c979954f9c5fbec522f6609de498bc6638 (patch) | |
tree | 810e018ae014f7244dd3c7a2f07f0b3386404261 /lib | |
parent | 8ca1208bbb1a246fae54801876c84c293f3967ea (diff) | |
parent | 8d2d051841c30a9596a8ec2b680beb73ee955b87 (diff) | |
download | nextcloud-server-abe222c979954f9c5fbec522f6609de498bc6638.tar.gz nextcloud-server-abe222c979954f9c5fbec522f6609de498bc6638.zip |
Merge pull request #21739 from nextcloud/techdebt/14552/migrate-OC-initSession
Remove hook for initSession
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/base.php b/lib/base.php index 8109e47cdc0..6d0790e9285 100644 --- a/lib/base.php +++ b/lib/base.php @@ -419,14 +419,8 @@ class OC { $sessionName = OC_Util::getInstanceId(); try { - // Allow session apps to create a custom session object - $useCustomSession = false; - $session = self::$server->getSession(); - OC_Hook::emit('OC', 'initSession', ['session' => &$session, 'sessionName' => &$sessionName, 'useCustomSession' => &$useCustomSession]); - if (!$useCustomSession) { - // set the session name to the instance id - which is unique - $session = new \OC\Session\Internal($sessionName); - } + // set the session name to the instance id - which is unique + $session = new \OC\Session\Internal($sessionName); $cryptoWrapper = \OC::$server->getSessionCryptoWrapper(); $session = $cryptoWrapper->wrapSession($session); |