From 69a65d34097cd54c15bea6d0125c69133894b5a1 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 16 Apr 2018 23:13:48 +0200 Subject: [PATCH] Prevent auto-fill of saved credentials into HTTP auth fields (issue #605) Tried with Firefox 58, Chromium 63, Chrome 66. --- cabot/cabotapp/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cabot/cabotapp/views.py b/cabot/cabotapp/views.py index 89644ef..ea7b74e 100644 --- a/cabot/cabotapp/views.py +++ b/cabot/cabotapp/views.py @@ -228,6 +228,8 @@ class HttpStatusCheckForm(StatusCheckForm): }), 'password': forms.PasswordInput(attrs={ 'style': 'width: 30%', + # Prevent auto-fill with saved Cabot log-in credentials: + 'autocomplete': 'new-password', }), 'text_match': forms.TextInput(attrs={ 'style': 'width: 100%',