Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1eb180
)
MDL-46753 auth_cas: Replace hardcoded logout_return_url to user defined URL.
author
Simey Lameze
<simey@moodle.com>
Mon, 18 Aug 2014 04:46:29 +0000
(12:46 +0800)
committer
Simey Lameze
<simey@moodle.com>
Mon, 18 Aug 2014 04:51:44 +0000
(12:51 +0800)
Credit goes to Mitsuru Udagawa, thanks!
auth/cas/auth.php
patch
|
blob
|
blame
|
history
diff --git
a/auth/cas/auth.php
b/auth/cas/auth.php
index
9d83dd1
..
d6c2218
100644
(file)
--- a/
auth/cas/auth.php
+++ b/
auth/cas/auth.php
@@
-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);
}