Merge branch 'fix' into 'develop'

Fix redirect

See merge request !225
parents 7680505d 0cff4249
...@@ -11,6 +11,7 @@ use Drupal\Core\Database\Connection; ...@@ -11,6 +11,7 @@ use Drupal\Core\Database\Connection;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Drupal\Core\Logger\LoggerChannelFactoryInterface; use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use phpCAS; use phpCAS;
...@@ -190,10 +191,6 @@ class CASLogout extends ControllerBase ...@@ -190,10 +191,6 @@ class CASLogout extends ControllerBase
session_unset(); session_unset();
session_destroy(); session_destroy();
\Drupal::service('page_cache_kill_switch')->trigger(); \Drupal::service('page_cache_kill_switch')->trigger();
if ('casost_sch_sso_config' === $configRowName) { return new RedirectResponse($this->redirectUrl.'&error_code=' . $errorCode, 302, []);
return new RedirectResponse($this->redirectUrl.'&error_code=' . $errorCode, 302, []);
} else {
return new RedirectResponseWithCookieExt($this->redirectUrl .'&error_code=' . $errorCode, 302, []);
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment