(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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user