From 044908439bdd7280f7539e12441d7dfa6c4d4c63 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 8 Apr 2013 19:07:14 +0200 Subject: Début gestion authentification HTTP. Voir issue #26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/Feed.php | 11 +++++++++-- app/views/configure/feed.phtml | 13 +++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/models/Feed.php b/app/models/Feed.php index 159b6e767..91c8d8022 100644 --- a/app/models/Feed.php +++ b/app/models/Feed.php @@ -51,8 +51,15 @@ class Feed extends Model { public function pathEntries () { return $this->pathEntries; } - public function httpAuth () { - return $this->httpAuth; + public function httpAuth ($raw = true) { + if ($raw) { + return $this->httpAuth; + } else { + return array ( + 'username' => '', + 'password' => '' + ); + } } public function nbEntries () { $feedDAO = new FeedDAO (); diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index de0d5c83b..2ac601e3d 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -53,6 +53,19 @@ +
+ +
+ + La connexion permet d'accéder aux flux protégés par une authentification HTTP +
+ + +
+ +
+
+
-- cgit v1.2.3