diff options
| author | 2013-08-21 16:04:18 +0200 | |
|---|---|---|
| committer | 2013-08-21 16:04:18 +0200 | |
| commit | 54541608ac979dfc6044c89cb30493704dcc94c8 (patch) | |
| tree | 68c73aebd62f59e0d86c04526732a37bfaf7db07 /app/controllers/configureController.php | |
| parent | 456c95d2dbb40d358d79f426f68eb03f5f447945 (diff) | |
Fix issue #127 : ajout système de token
Ajout du système de token pour accéder aux flux RSS même quand la
connexion a été paramétrée.
Pour l'utiliser, il faut simplement ajouter le paramètre
?token=<votre_token> à l'url
Diffstat (limited to 'app/controllers/configureController.php')
| -rwxr-xr-x | app/controllers/configureController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php index 0fce9679f..6ebc13f39 100755 --- a/app/controllers/configureController.php +++ b/app/controllers/configureController.php @@ -140,6 +140,8 @@ class configureController extends ActionController { RSSThemes::init(); if (Request::isPost ()) { + $current_token = $this->view->conf->token (); + $language = Request::param ('language', 'en'); $nb = Request::param ('posts_per_page', 10); $mode = Request::param ('view_mode', 'normal'); @@ -151,6 +153,7 @@ class configureController extends ActionController { $old = Request::param ('old_entries', 3); $mail = Request::param ('mail_login', false); $anon = Request::param ('anon_access', 'no'); + $token = Request::param ('token', $current_token); $openArticle = Request::param ('mark_open_article', 'no'); $openSite = Request::param ('mark_open_site', 'no'); $scroll = Request::param ('mark_scroll', 'no'); @@ -168,6 +171,7 @@ class configureController extends ActionController { $this->view->conf->_oldEntries ($old); $this->view->conf->_mailLogin ($mail); $this->view->conf->_anonAccess ($anon); + $this->view->conf->_token ($token); $this->view->conf->_markWhen (array ( 'article' => $openArticle, 'site' => $openSite, @@ -188,6 +192,7 @@ class configureController extends ActionController { 'old_entries' => $this->view->conf->oldEntries (), 'mail_login' => $this->view->conf->mailLogin (), 'anon_access' => $this->view->conf->anonAccess (), + 'token' => $this->view->conf->token (), 'mark_when' => $this->view->conf->markWhen (), 'url_shaarli' => $this->view->conf->urlShaarli (), 'theme' => $this->view->conf->theme () |
