aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/edit_feed.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-07-08 18:21:56 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-07-08 18:21:56 -0700
commit8ee4280461aef523677a41a358e86f4918bcffa9 (patch)
tree865cd8932521a5be452928016d196870ebbcef05 /template/html/edit_feed.html
parent55a1e97778f45058ff3407a92303f6d57c0b15fe (diff)
Change feed password field type to text to avoid autocomplete with Firefox
- Using autocomplete="off" or autocomplete="new-password" doesn't change anything - Changing the input ID doesn't change anything - Using a different input name doesn't change anything - Only Chrome supports autocomplete="new-password"
Diffstat (limited to 'template/html/edit_feed.html')
-rw-r--r--template/html/edit_feed.html17
1 files changed, 12 insertions, 5 deletions
diff --git a/template/html/edit_feed.html b/template/html/edit_feed.html
index 8b7c560..41c3c80 100644
--- a/template/html/edit_feed.html
+++ b/template/html/edit_feed.html
@@ -45,11 +45,18 @@
<label for="form-feed-url">{{ t "Feed URL" }}</label>
<input type="url" name="feed_url" id="form-feed-url" placeholder="https://domain.tld/" value="{{ .form.FeedURL }}" required>
- <label for="form-username">{{ t "Feed Username" }}</label>
- <input type="text" name="feed_username" id="form-username" value="{{ .form.Username }}" autocomplete="new-password">
-
- <label for="form-password">{{ t "Feed Password" }}</label>
- <input type="password" name="feed_password" id="form-password" value="{{ .form.Password }}" autocomplete="new-password">
+ <label for="form-feed-username">{{ t "Feed Username" }}</label>
+ <input type="text" name="feed_username" id="form-feed-username" value="{{ .form.Username }}">
+
+ <label for="form-feed-password">{{ t "Feed Password" }}</label>
+ <!--
+ We are using the type "text" otherwise Firefox always autocomplete this password:
+
+ - autocomplete="off" or autocomplete="new-password" doesn't change anything
+ - Changing the input ID doesn't change anything
+ - Using a different input name doesn't change anything
+ -->
+ <input type="text" name="feed_password" id="form-feed-password" value="{{ .form.Password }}">
<label for="form-scraper-rules">{{ t "Scraper Rules" }}</label>
<input type="text" name="scraper_rules" id="form-scraper-rules" value="{{ .form.ScraperRules }}">