Skip to content
Snippets Groups Projects
Commit b182d887 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

small formatting change

parent 8a73760b
Branches
No related tags found
No related merge requests found
<?php
/**
* Elgg logout action for use with UNL CAS
*
* @package Elgg
* @subpackage Core
* @overwritten cas_auth_unl/actions/logout.php
* @author Curverider Ltd
* @link http://elgg.org/
*/
/**
* Elgg logout action for use with UNL CAS
*
* @package Elgg
* @subpackage Core
* @overwritten cas_auth_unl/actions/logout.php
* @author Curverider Ltd
* @link http://elgg.org/
*/
// Save this session value since the next step wipes it out
$loggedInWithCas = $_SESSION['loggedInWithCas'];
// Save this session value since the next step wipes it out
$loggedInWithCas = $_SESSION['loggedInWithCas'];
// Log out
$result = logout();
// Log out
$result = logout();
// Set the system_message as appropriate
if ($result) {
system_message(elgg_echo('logoutok'));
} else {
register_error(elgg_echo('logouterror'));
}
// Set the system_message as appropriate
if ($result) {
system_message(elgg_echo('logoutok'));
} else {
register_error(elgg_echo('logouterror'));
}
// We've destoyed all the Elgg session data, now do CAS logout if neccessary
// Due to problems getting the SimpleCAS logout to work, we're just forwarding to the right URL since
// the Elgg logout function above took care of destroying the session, which is all the SimpleCAS logout
// was doing anyway.
if ($loggedInWithCas) {
global $CONFIG;
forward('https://login.unl.edu/cas/logout?url='.$CONFIG->url);
}
?>
\ No newline at end of file
// We've destoyed all the Elgg session data, now do CAS logout if neccessary
// Due to problems getting the SimpleCAS logout to work, we're just forwarding to the right URL since
// the Elgg logout function above took care of destroying the session, which is all the SimpleCAS logout
// was doing anyway.
if ($loggedInWithCas) {
global $CONFIG;
forward('https://login.unl.edu/cas/logout?url='.$CONFIG->url);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment