summaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/configureController.php')
-rwxr-xr-xapp/Controllers/configureController.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index aabc3e4af..0c0b4951d 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -326,10 +326,13 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
Minz_Session::_param('mail', $this->view->conf->mail_login);
if (Minz_Configuration::isAdmin()) {
- $anon = (Minz_Request::param('anon_access', false));
+ $anon = Minz_Request::param('anon_access', false);
$anon = ((bool)$anon) && ($anon !== 'no');
- if ($anon != Minz_Configuration::allowAnonymous()) {
+ $auth_type = Minz_Request::param('auth_type', 'none');
+ if ($anon != Minz_Configuration::allowAnonymous() ||
+ $auth_type != Minz_Configuration::authType()) {
Minz_Configuration::_allowAnonymous($anon);
+ Minz_Configuration::_authType($auth_type);
$ok &= Minz_Configuration::writeFile();
}
}