aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/authController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-06 20:50:58 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-06 20:50:58 +0100
commit5f9672111f86c693d843138c00934a6c3eeede45 (patch)
tree4aa58d52cb0650c482820db6d3be6606bfa5c163 /app/Controllers/authController.php
parentd3a93ea2905ae50a2365d293f9f3ef3e51bf5f30 (diff)
Fix last calls to Minz_Configuration methods
- We have still to fix actualize_script and greader api (refactoring?) - We have to fix the FreshRSS_Configuration calls - We have to fix availableLanguages calls See https://github.com/FreshRSS/FreshRSS/issues/730
Diffstat (limited to 'app/Controllers/authController.php')
-rw-r--r--app/Controllers/authController.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index 4ae9ff7fb..02b8119e9 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -310,7 +310,7 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
}
// TODO #730
- $conf = new FreshRSS_Configuration(Minz_Configuration::defaultUser());
+ $conf = new FreshRSS_Configuration(FreshRSS_Context::$system_conf->default_user);
// Admin user must have set its master password.
if (!$conf->passwordHash) {
$this->view->message = array(
@@ -334,9 +334,8 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
);
if ($ok) {
- // TODO #730
- Minz_Configuration::_authType('form');
- $ok = Minz_Configuration::writeFile();
+ FreshRSS_Context::$system_conf->auth_type = 'form';
+ $ok = FreshRSS_Context::$system_conf->save();
if ($ok) {
Minz_Request::good(_t('feedback.auth.form.set'));