]> git.mjollnir.org Git - moodle.git/commitdiff
email selfregistration enabled by default again - thanks Eloy for noticing the problem
authorskodak <skodak>
Sat, 24 Feb 2007 09:48:10 +0000 (09:48 +0000)
committerskodak <skodak>
Sat, 24 Feb 2007 09:48:10 +0000 (09:48 +0000)
admin/index.php
lib/db/upgrade.php

index 4f934ce5f397f9bb7be752757711f20d9ef536e2..1ae53ec18bf5e43c5edaabd42e94c4189702127d 100644 (file)
                                                    'enrol' => 'manual',
                                                    'enrol_plugins_enabled' => 'manual',
                                                    'guestloginbutton' => 1,
+                                                   'registerauth' => 'email',
                                                    'style' => 'default',
                                                    'template' => 'default',
                                                    'theme' => 'standardwhite',
index dbf48477422bce19b8477d308101736979dd3d24..595a1f0ac7a6d8fa2845647aff6906c03614c691 100644 (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) {