summaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-29 02:12:46 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-29 02:12:46 +0100
commit220341b40642771f9b5db97296edfb1913182464 (patch)
treeb773f9cdbc58df963a024639da5a89673147188c /app/Controllers/configureController.php
parent96bdbafceac44af2159e6b80d3d403e0608991d9 (diff)
Implémente sélecteur de méthode d’authentification
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/126
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();
}
}