]> git.mjollnir.org Git - moodle.git/commitdiff
FIX ME notice for $cas_validate that should be IMHO global, but it works anyway
authorskodak <skodak>
Sat, 22 Apr 2006 15:55:20 +0000 (15:55 +0000)
committerskodak <skodak>
Sat, 22 Apr 2006 15:55:20 +0000 (15:55 +0000)
auth/cas/lib.php

index 2254341bb7c6b2b5dc20a603f9fffe92e89387d3..29d0aee4f7829b60b801d5ba3f0e625bc9f7a54d 100644 (file)
@@ -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);