MDL-46753 auth_cas: Replace hardcoded logout_return_url to user defined URL.

Credit goes to Mitsuru Udagawa, thanks!
This commit is contained in:
Simey Lameze
2014-08-18 12:57:34 +08:00
parent 2aa6dd4c60
commit 068ef548de
+1 -1
View File
@@ -169,7 +169,7 @@ class auth_plugin_cas extends auth_plugin_ldap {
global $CFG, $USER, $DB;
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();
// Note: Hack to stable versions to trigger the event before it redirect to CAS logout.
$sid = session_id();