(MDL-8973) Fix OOP model of new multi auth plugins + some other auth related fixes, fixed change_password, ldap updates, etc.; TODO: fix docs

This commit is contained in:
skodak
2007-03-22 12:27:52 +00:00
parent 6a5e9a8506
commit 6bc1e5d577
37 changed files with 658 additions and 432 deletions
+3 -2
View File
@@ -559,14 +559,15 @@ function main_upgrade($oldversion=0) {
if ($oldversion < 2004082600) {
//update auth-fields for external users
include_once ($CFG->dirroot."/auth/".$CFG->auth."/lib.php");
// following code would not work in 1.8
/* include_once ($CFG->dirroot."/auth/".$CFG->auth."/lib.php");
if (function_exists('auth_get_userlist')) {
$externalusers = auth_get_userlist();
if (!empty($externalusers)){
$externalusers = '\''. implode('\',\'',$externalusers).'\'';
execute_sql("UPDATE {$CFG->prefix}user SET auth = '$CFG->auth' WHERE username IN ($externalusers)");
}
}
}*/
}
if ($oldversion < 2004082900) { // Make sure guest is "manual" too.