mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
cas functions frr login
This commit is contained in:
parent
e6157a7368
commit
ec7d2201cc
1 changed files with 2 additions and 12 deletions
|
@ -4,8 +4,8 @@
|
|||
* CAS for login module
|
||||
* 10.03.2004 Creation
|
||||
*/
|
||||
require_once($CFG->dirroot."/config.php");
|
||||
include_once($CFG->dirroot.'/auth/cas/cas/CAS.php');
|
||||
require_once($CFG->dirroot.'/config.php');
|
||||
include_once($CFG->dirroot.'/lib/cas/CAS.php');
|
||||
$cas_validate=false;
|
||||
|
||||
/**
|
||||
|
@ -90,14 +90,4 @@ function cas_automatic_authenticate ($user="") {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* logout the user from CAS server (destroy the ticket)
|
||||
*/
|
||||
function cas_logout () {
|
||||
global $CFG;
|
||||
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);
|
||||
$backurl = $CFG->wwwroot;
|
||||
phpCAS::logout($backurl);
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue