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

small formatting change

parent 8a73760b
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Elgg logout action for use with UNL CAS
*
......@@ -17,7 +16,6 @@
$result = logout();
// Set the system_message as appropriate
if ($result) {
system_message(elgg_echo('logoutok'));
} else {
......@@ -28,9 +26,7 @@
// 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment