Skip to content
Browse files

A quick hook for CAS to work

  • Loading branch information...
1 parent 0dd01de commit 70e681895576abf1ab11122e44641ec9ed02a645 moodler committed Mar 11, 2005
Showing with 5 additions and 0 deletions.
  1. +5 −0 login/logout.php
View
5 login/logout.php
@@ -5,8 +5,13 @@
if (isset($USER) and isset($USER->id)) {
add_to_log(SITEID, "user", "logout", "view.php?id=$USER->id&course=".SITEID, $USER->id, 0, $USER->id);
+
+ if ($USER->auth == 'cas' && !empty($CFG->cas_enabled)) {
+ require($CFG->dirroot.'/auth/cas/logout.php');
+ }
}
+
if (ini_get_bool("register_globals") and check_php_version("4.3.0")) {
// This method is just to try to avoid silly warnings from PHP 4.3.0
session_unregister("USER");

0 comments on commit 70e6818

Please sign in to comment.
Something went wrong with that request. Please try again.