Skip to content

Commit

Permalink
Merge pull request #27971 from owncloud/setup-nologinafter
Browse files Browse the repository at this point in the history
Don't login user after setup, doesn't work any way
  • Loading branch information
Vincent Petry authored May 22, 2017
2 parents c9e7148 + cb7a1a4 commit 878db78
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/private/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 878db78

Please sign in to comment.