Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment