diff options
| author | 2013-04-08 19:07:14 +0200 | |
|---|---|---|
| committer | 2013-04-08 19:07:14 +0200 | |
| commit | 044908439bdd7280f7539e12441d7dfa6c4d4c63 (patch) | |
| tree | fa29073ad7192f00dec9ff52450a00cdd2bbbfd6 /app/models | |
| parent | 204761a81035f04f3159f9679826c432912f0022 (diff) | |
Début gestion authentification HTTP. Voir issue #260.1.0
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/Feed.php | 11 |
1 files changed, 9 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 (); |
