diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 898d92f19a24..d53f9f004c57 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -374,15 +374,6 @@ public function install($options) { //and we are done $config->setSystemValue('installed', true); - - // Create a session token for the newly created user - // The token provider requires a working db, so it's not injected on setup - /* @var $userSession User\Session */ - $userSession = \OC::$server->getUserSession(); - $defaultTokenProvider = \OC::$server->query('OC\Authentication\Token\DefaultTokenProvider'); - $userSession->setTokenProvider($defaultTokenProvider); - $userSession->login($username, $password); - $userSession->createSessionToken($request, $userSession->getUser()->getUID(), $username, $password); } return $error;