diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-06-30 18:05:51 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-06-30 18:05:51 -0700 |
commit | cc1e4f916f9b0eb248f4648951f8e511285c1960 (patch) | |
tree | 250941f2ec6a873cd18b9d7ca53cf608a6c56403 /ui | |
parent | 240f8017557c356f3048d00c45c2664372d26fa9 (diff) |
Avoid Chrome to autocomplete no-login password fields
Browsers always autocomplete saved passwords even with autocomplete="off".
https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
Diffstat (limited to 'ui')
-rw-r--r-- | ui/form/feed.go | 4 | ||||
-rw-r--r-- | ui/form/subscription.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/form/feed.go b/ui/form/feed.go index 1a3766b..853287a 100644 --- a/ui/form/feed.go +++ b/ui/form/feed.go @@ -64,7 +64,7 @@ func NewFeedForm(r *http.Request) *FeedForm { RewriteRules: r.FormValue("rewrite_rules"), Crawler: r.FormValue("crawler") == "1", CategoryID: int64(categoryID), - Username: r.FormValue("username"), - Password: r.FormValue("password"), + Username: r.FormValue("feed_username"), + Password: r.FormValue("feed_password"), } } diff --git a/ui/form/subscription.go b/ui/form/subscription.go index 015f60f..122d25a 100644 --- a/ui/form/subscription.go +++ b/ui/form/subscription.go @@ -40,7 +40,7 @@ func NewSubscriptionForm(r *http.Request) *SubscriptionForm { URL: r.FormValue("url"), Crawler: r.FormValue("crawler") == "1", CategoryID: int64(categoryID), - Username: r.FormValue("username"), - Password: r.FormValue("password"), + Username: r.FormValue("feed_username"), + Password: r.FormValue("feed_password"), } } |