|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00003 function xmldb_auth_db_install() { 00004 global $CFG, $DB; 00005 00006 // upgrade from 1.9.x, introducing version.php 00007 00008 // remove cached passwords, we do not need them for this plugin, but only if internal 00009 $type = get_config('auth/db', 'passtype'); 00010 if ($type and $type !== 'internal') { 00011 $DB->set_field('user', 'password', 'not cached', array('auth'=>'db')); 00012 } 00013 00014 }