Commit 41d0b969 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '6088-logout-in-cas-mode-make-a-redirection-error' into '1.4-dev'

Resolve "Logout in cas mode make a redirection error"

See merge request fusiondirectory/fd!875
Showing with 4 additions and 1 deletion
+4 -1
......@@ -49,7 +49,10 @@ if (isset($_REQUEST['signout']) && $_REQUEST['signout']) {
$reason = '';
if (session::is_set('connected')) {
$config = session::get('config');
if ($config->get_cfg_value('casActivated') == 'TRUE') {
if (
($config->get_cfg_value('casActivated') == 'TRUE') ||
($config->get_cfg_value('LoginMethod') === 'LoginCAS')
) {
LoginCAS::initCAS();
phpCAS::logout();
}
......
Supports Markdown
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