Redirect to default app after registration

This commit is contained in:
Zorn 2018-03-25 11:55:47 +10:00
parent 0cc7990ad1
commit 90b5c8bd33
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ class RegistrationService {
if ( method_exists($this->usersession, 'createSessionToken') ) {
$this->usersession->login($username, $password);
$this->usersession->createSessionToken($this->request, $userId, $username, $password);
return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.index'));
return new RedirectResponse($this->urlGenerator->linkTo('', 'index.php'));
} elseif (\OC_User::login($username, $password)) {
$this->cleanupLoginTokens($userId);
// FIXME unsetMagicInCookie will fail from session already closed, so now we always remember