summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-08 19:07:14 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-08 19:07:14 +0200
commit044908439bdd7280f7539e12441d7dfa6c4d4c63 (patch)
treefa29073ad7192f00dec9ff52450a00cdd2bbbfd6
parent204761a81035f04f3159f9679826c432912f0022 (diff)
Début gestion authentification HTTP. Voir issue #260.1.0
-rw-r--r--app/models/Feed.php11
-rw-r--r--app/views/configure/feed.phtml13
-rw-r--r--public/theme/base.css1
3 files changed, 23 insertions, 2 deletions
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 @@
</div>
</div>
+ <div class="form-group">
+ <label class="group-name" for="http_user">Username HTTP</label>
+ <div class="group-controls">
+ <input type="text" name="http_user" id="http_user" value="Pas encore implémenté" />
+ <i class="icon i_help"></i> La connexion permet d'accéder aux flux protégés par une authentification HTTP
+ </div>
+
+ <label class="group-name" for="http_pass">Password HTTP</label>
+ <div class="group-controls">
+ <input type="text" name="http_pass" id="http_pass" value="Pas encore implémenté" />
+ </div>
+ </div>
+
<div class="form-group form-actions">
<div class="group-controls">
<button class="btn btn-important">Valider</button>
diff --git a/public/theme/base.css b/public/theme/base.css
index 9f53293d5..b2e47fd69 100644
--- a/public/theme/base.css
+++ b/public/theme/base.css
@@ -695,6 +695,7 @@ input, select, textarea {
height: 35px;
vertical-align: middle;
line-height: 35px;
+ font-size: 12px;
}
.flux_header .item.website {
width: 200px;