diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 15:31:17 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 19:48:06 +0100 |
commit | 0d5c4e438e001ef21dfae69df4ae186b697d2efc (patch) | |
tree | 82e00390f6bac6fbcb1bb09479982167b5e792f4 /controller | |
parent | f7520a8fe7191475668904f5f8c1816df25e2e5a (diff) |
add basic basic auth support
Diffstat (limited to 'controller')
-rw-r--r-- | controller/feedcontroller.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index 37e415661..2b95794a3 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -124,16 +124,20 @@ class FeedController extends Controller { * @param string $url * @param int $parentFolderId * @param string $title + * @param string $user + * @param string $password * @return array|\OCP\AppFramework\Http\JSONResponse */ - public function create($url, $parentFolderId, $title){ + public function create($url, $parentFolderId, $title=null, + $user=null, $password=null){ try { // we need to purge deleted feeds if a feed is created to // prevent already exists exceptions $this->feedService->purgeDeleted($this->userId, false); $feed = $this->feedService->create($url, $parentFolderId, - $this->userId, $title); + $this->userId, $title, + $user, $password); $params = ['feeds' => [$feed]]; try { |