email selfregistration enabled by default again - thanks Eloy for noticing the problem

This commit is contained in:
skodak 2007-02-24 09:48:10 +00:00
parent 04e0c322ca
commit 177df3c6c5
2 changed files with 6 additions and 0 deletions

View File

@ -207,6 +207,7 @@
'enrol' => 'manual',
'enrol_plugins_enabled' => 'manual',
'guestloginbutton' => 1,
'registerauth' => 'email',
'style' => 'default',
'template' => 'default',
'theme' => 'standardwhite',

View File

@ -133,6 +133,11 @@ function xmldb_main_upgrade($oldversion=0) {
// Move the auth plugin settings into the config_plugin table
if ($oldversion < 2007010300) {
if ($CFG->auth == 'email') {
set_config('registerauth', 'email');
} else {
set_config('registerauth', '');
}
$authplugins = get_list_of_plugins('auth');
foreach ($CFG as $k => $v) {
if (strpos($k, 'auth_') !== 0) {