4
0
Эх сурвалжийг харах

Début gestion authentification HTTP. Voir issue #26

Marien Fressinaud 13 жил өмнө
parent
commit
044908439b

+ 9 - 2
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 ();

+ 13 - 0
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>

+ 1 - 0
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;