Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
0cff4249
Commit
0cff4249
authored
Jun 28, 2017
by
Σταύρος Παπαδάκης
Browse files
Fix redirect
parent
7680505d
Changes
1
Hide whitespace changes
Inline
Side-by-side
drupal/modules/casost/src/Controller/CASLogout.php
View file @
0cff4249
...
...
@@ -11,6 +11,7 @@ use Drupal\Core\Database\Connection;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpFoundation\JsonResponse
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Drupal\Core\Logger\LoggerChannelFactoryInterface
;
use
phpCAS
;
...
...
@@ -190,10 +191,6 @@ class CASLogout extends ControllerBase
session_unset
();
session_destroy
();
\
Drupal
::
service
(
'page_cache_kill_switch'
)
->
trigger
();
if
(
'casost_sch_sso_config'
===
$configRowName
)
{
return
new
RedirectResponse
(
$this
->
redirectUrl
.
'&error_code='
.
$errorCode
,
302
,
[]);
}
else
{
return
new
RedirectResponseWithCookieExt
(
$this
->
redirectUrl
.
'&error_code='
.
$errorCode
,
302
,
[]);
}
return
new
RedirectResponse
(
$this
->
redirectUrl
.
'&error_code='
.
$errorCode
,
302
,
[]);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment