mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
FIX ME notice for $cas_validate that should be IMHO global, but it works anyway
This commit is contained in:
parent
ad497eea7b
commit
de177d8f2d
@ -98,6 +98,7 @@ function cas_ldap_auth_user_login ($username, $password) {
|
||||
function cas_authenticate_user_login ($username, $password) {
|
||||
|
||||
global $CFG;
|
||||
// FIX ME: $cas_validate is not global
|
||||
$cas_validate=true;
|
||||
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri);
|
||||
phpCAS::setLang($CFG->cas_language);
|
||||
@ -131,6 +132,7 @@ function cas_authenticate_user_login ($username, $password) {
|
||||
*/
|
||||
function cas_automatic_authenticate ($user="") {
|
||||
global $CFG;
|
||||
// FIX ME: $cas_validate is not global, but it works anyway ;-)
|
||||
if (!$cas_validate){
|
||||
$cas_validate=true;
|
||||
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(int)$CFG->cas_port,$CFG->cas_baseuri);
|
||||
|
Loading…
x
Reference in New Issue
Block a user