diff --git a/auth/cas/auth.php b/auth/cas/auth.php index d94c3965ba6..5eb84340d74 100644 --- a/auth/cas/auth.php +++ b/auth/cas/auth.php @@ -154,6 +154,7 @@ class auth_plugin_cas extends auth_plugin_ldap { $frm = new stdClass(); $frm->username = phpCAS::getUser(); $frm->password = 'passwdCas'; + $frm->logintoken = \core\session\manager::get_login_token(); // Redirect to a course if multi-auth is activated, authCAS is set to CAS and the courseid is specified. if ($this->config->multiauth && !empty($courseid)) { @@ -167,6 +168,7 @@ class auth_plugin_cas extends auth_plugin_ldap { $frm = new stdClass(); $frm->username = 'guest'; $frm->password = 'guest'; + $frm->logintoken = \core\session\manager::get_login_token(); return; }