mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-46753-master' of git://github.com/lameze/moodle
This commit is contained in:
commit
fd6bfe5856
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ class auth_plugin_cas extends auth_plugin_ldap {
|
|||
global $CFG;
|
||||
// Only redirect to CAS logout if the user is logged as a CAS user.
|
||||
if (!empty($this->config->logoutcas) && $user->auth == $this->authtype) {
|
||||
$backurl = $CFG->wwwroot;
|
||||
$backurl = !empty($this->config->logout_return_url) ? $this->config->logout_return_url : $CFG->wwwroot;
|
||||
$this->connectCAS();
|
||||
phpCAS::logoutWithRedirectService($backurl);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue