From 1017823b0631edc742e2a1ecd8e1c5db2b868333 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 6 May 2016 11:40:25 -0500 Subject: [PATCH] Disable autocomplete for password fields when editing user Er, at least try. Didn't seem to work in my local test though. --- tailbone/views/users.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/views/users.py b/tailbone/views/users.py index 8ab6cfc9..8f249a1a 100644 --- a/tailbone/views/users.py +++ b/tailbone/views/users.py @@ -160,7 +160,9 @@ class UsersView(MasterView): fs.person.set(options=[]) fs.person.set(renderer=renderers.PersonFieldLinkRenderer) fs.append(PasswordField('password', label="Set Password")) + fs.password.attrs(autocomplete='off') fs.append(formalchemy.Field('confirm_password', renderer=PasswordFieldRenderer)) + fs.confirm_password.attrs(autocomplete='off') fs.append(RolesField('roles', renderer=RolesFieldRenderer(self.request))) fs.configure( include=[