Commit 074503b8 authored by Fabian de Rijk's avatar Fabian de Rijk
Browse files

Issue #3312108: RuntimeException: Failed to start the session because headers...

Issue #3312108: RuntimeException: Failed to start the session because headers have already been sent
parent e8c81026
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -173,7 +173,8 @@ class AuthenticationService implements AuthenticationServiceInterface {

      $url = Url::fromRoute('user.login');
      $response = new TrustedRedirectResponse($url->toString());
      return $response->send();
      $response->send();
      exit();
    }

    if ($this->debug) {
@@ -196,7 +197,8 @@ class AuthenticationService implements AuthenticationServiceInterface {
    $authUrl = $this->oauthClient->getAuthorizationUrl() . '&client_id=' . $clientId;

    $response = new TrustedRedirectResponse($authUrl);
    return $response->send();
    $response->send();
    exit();
  }

  /**
@@ -220,7 +222,8 @@ class AuthenticationService implements AuthenticationServiceInterface {
        $redirect .= '&expires_on=' . $accessToken->getExpires();

        $response = new TrustedRedirectResponse($redirect);
        return $response->send();
        $response->send();
        exit();
      }
    }
    catch (IdentityProviderException $e) {