system/classes/config.class.php
branchHEAD
changeset 6983 40a4e43583a5
parent 6958 0774a19f037c
child 7019 a65dd04d595b
     1.1 --- a/system/classes/config.class.php	Sat Apr 18 19:46:23 2009 +0200
     1.2 +++ b/system/classes/config.class.php	Mon Apr 20 17:58:10 2009 +0200
     1.3 @@ -386,6 +386,16 @@
     1.4                  $this->config_array['Core']['layout_url'] = $this->config_array['Core']['site_url'] . '/layout/' . $theme;
     1.5              }
     1.6          }
     1.7 +
     1.8 +        if (!$this->config_array['Core']['user_login_method']['standard'] &&
     1.9 +            !$this->config_array['Core']['user_login_method']['openid'] &&
    1.10 +            !$this->config_array['Core']['user_login_method']['3rdparty']) {
    1.11 +            // just to make sure people don't lock themselves out of their site
    1.12 +            $this->config_array['Core']['user_login_method']['standard'] = true;
    1.13 +
    1.14 +            // TBD: ensure that we have a Root user able to log in with the
    1.15 +            //      enabled login method(s)
    1.16 +        }
    1.17      }
    1.18  
    1.19      function _get_groups()