Removed autocomplete on password forms
authorThierry Florac <thierry.florac@onf.fr>
Wed, 01 Apr 2015 10:38:41 +0200
changeset 26 1a7d6f305943
parent 25 31ad4c01e99e
child 27 719d3f65ef5c
Removed autocomplete on password forms
src/pyams_security/views/userfolder.py
src/pyams_security/zmi/plugin/userfolder.py
--- a/src/pyams_security/views/userfolder.py	Tue Mar 31 17:13:34 2015 +0200
+++ b/src/pyams_security/views/userfolder.py	Wed Apr 01 10:38:41 2015 +0200
@@ -77,6 +77,7 @@
     input_css_class = 'col-md-8'
 
     fields = field.Fields(IUserRegistrationInfo)
+    autocomplete = 'off'
     buttons = button.Buttons(IUserRegistrationFormButtons)
     ajax_handler = 'user-registration.json'
     edit_permission = None
@@ -132,7 +133,7 @@
         return {'status': 'success',
                 'messagebox': {'status': 'success',
                                'title': translate(_("Your registration is recorded!")),
-                               'icon': 'fa fa-fw fa-2x fa-user',
+                               'icon': 'fa fa-fw fa-user',
                                'content': translate(_("Your registration is recorded. You should receive a "
                                                       "confirmation email soon which will allow you to "
                                                       "confirm your inscription.")),
@@ -159,6 +160,7 @@
     icon_css_class = 'fa fa-fw fa-user'
 
     fields = field.Fields(IUserRegistrationConfirmationInfo)
+    autocomplete = 'off'
     buttons = button.Buttons(IUserConfirmationFormButtons)
     ajax_handler = 'user-confirmation.json'
     edit_permission = None
--- a/src/pyams_security/zmi/plugin/userfolder.py	Tue Mar 31 17:13:34 2015 +0200
+++ b/src/pyams_security/zmi/plugin/userfolder.py	Wed Apr 01 10:38:41 2015 +0200
@@ -268,6 +268,7 @@
         field.Fields(IUserRegistrationInfo).select('password', 'confirmed_password') + \
         field.Fields(ILocalUser).select('wait_confirmation')
 
+    autocomplete = 'off'
     ajax_handler = 'add-user.json'
     edit_permission = 'system.manage'