Disable autocomplete for password fields when editing user

Er, at least try.  Didn't seem to work in my local test though.
This commit is contained in:
Lance Edgar 2016-05-06 11:40:25 -05:00
parent 3e6c1f28b9
commit 1017823b06

View file

@ -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=[