[geeklog-cvs] geeklog: Just a quick hack to make sure people don't lock themse...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Apr 20 12:48:18 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/40a4e43583a5
changeset: 6983:40a4e43583a5
user: Dirk Haun <dirk at haun-online.de>
date: Mon Apr 20 17:58:10 2009 +0200
description:
Just a quick hack to make sure people don't lock themselves out of their site too easily
diffstat:
1 file changed, 10 insertions(+)
system/classes/config.class.php | 10 ++++++++++
diffs (20 lines):
diff -r 0f4255abb760 -r 40a4e43583a5 system/classes/config.class.php
--- a/system/classes/config.class.php Mon Apr 20 16:07:41 2009 +0200
+++ b/system/classes/config.class.php Mon Apr 20 17:58:10 2009 +0200
@@ -385,6 +385,16 @@
if (! empty($this->config_array['Core']['site_url'])) {
$this->config_array['Core']['layout_url'] = $this->config_array['Core']['site_url'] . '/layout/' . $theme;
}
+ }
+
+ if (!$this->config_array['Core']['user_login_method']['standard'] &&
+ !$this->config_array['Core']['user_login_method']['openid'] &&
+ !$this->config_array['Core']['user_login_method']['3rdparty']) {
+ // just to make sure people don't lock themselves out of their site
+ $this->config_array['Core']['user_login_method']['standard'] = true;
+
+ // TBD: ensure that we have a Root user able to log in with the
+ // enabled login method(s)
}
}
More information about the geeklog-cvs
mailing list