From cc1e4f916f9b0eb248f4648951f8e511285c1960 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 30 Jun 2018 18:05:51 -0700 Subject: 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 --- ui/form/feed.go | 4 ++-- ui/form/subscription.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ui/form') 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"), } } -- cgit v1.2.3