Skip to content

Commit

Permalink
Don't login user after setup, doesn't work any way
Browse files Browse the repository at this point in the history
Remove code that automatically logs in the admin user after setting up
ownCloud. This doesn't work anyway.
  • Loading branch information
Vincent Petry committed May 22, 2017
1 parent 50503a1 commit cb7a1a4
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 cb7a1a4

Please sign in to comment.