aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-08 09:02:37 +0200
committerGitHub <noreply@github.com>2020-07-08 09:02:37 +0200
commitabe222c979954f9c5fbec522f6609de498bc6638 (patch)
tree810e018ae014f7244dd3c7a2f07f0b3386404261 /lib
parent8ca1208bbb1a246fae54801876c84c293f3967ea (diff)
parent8d2d051841c30a9596a8ec2b680beb73ee955b87 (diff)
downloadnextcloud-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.php10
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);