summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-03-25 15:31:17 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2016-03-25 19:48:06 +0100
commit0d5c4e438e001ef21dfae69df4ae186b697d2efc (patch)
tree82e00390f6bac6fbcb1bb09479982167b5e792f4 /templates
parentf7520a8fe7191475668904f5f8c1816df25e2e5a (diff)
add basic basic auth support
Diffstat (limited to 'templates')
-rw-r--r--templates/part.navigation.addfeed.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/part.navigation.addfeed.php b/templates/part.navigation.addfeed.php
index 58f3b2e76..663535115 100644
--- a/templates/part.navigation.addfeed.php
+++ b/templates/part.navigation.addfeed.php
@@ -75,6 +75,26 @@
<?php p($l->t('Folder exists already!')); ?>
</p>
+ <!-- basic auth -->
+ <button type="button" class="add-feed-advanced" ng-click="Navigation.showAddFeedAdvanced=!Navigation.showAddFeedAdvanced">
+ <?php p($l->t('Advanced settings')); ?>
+ </button>
+ <div ng-if="Navigation.showAddFeedAdvanced" class="add-feed-advanced-area">
+ <h2><?php p($l->t('Credentials')); ?></h2>
+ <p class="warning"><?php p($l->t('HTTP Basic Auth credentials must be stored unencrypted! Everyone with access to the server or database will be able to access them!')); ?></p>
+ <input type="text"
+ ng-model="Navigation.feed.user"
+ placeholder="<?php p($l->t('Username')); ?>"
+ name="user"
+ autofocus>
+
+ <input type="password"
+ ng-model="Navigation.feed.password"
+ placeholder="<?php p($l->t('Password')); ?>"
+ name="password">
+ </div>
+
+ <!-- submit -->
<input type="submit"
value="<?php p($l->t('Subscribe')); ?>"
class="primary"