From 54541608ac979dfc6044c89cb30493704dcc94c8 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Wed, 21 Aug 2013 16:04:18 +0200 Subject: Fix issue #127 : ajout système de token MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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= à l'url --- app/views/configure/display.phtml | 9 +++++++++ app/views/index/index.phtml | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 1fdcdee41..3989ff06f 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -50,6 +50,15 @@ + +
+ + conf->token (); ?> +
+ + +
+
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml index 4bf82f9b4..73e5fcc4d 100644 --- a/app/views/index/index.phtml +++ b/app/views/index/index.phtml @@ -1,10 +1,14 @@ conf->token(); +$token_param = Request::param ('token', ''); +$token_is_ok = ($token != '' && $token == $token_param); if(!login_is_conf ($this->conf) || is_logged() || - $this->conf->anonAccess() == 'yes') { + $this->conf->anonAccess() == 'yes' || + ($output == 'rss' && $token_is_ok)) { if($output == 'rss') { $this->renderHelper ('view/rss_view'); } elseif($output == 'reader') { -- cgit v1.2.3