~unifield-team/unifield-web/trunk

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/preferences.py

  • Committer: jf
  • Date: 2016-08-23 11:54:24 UTC
  • mfrom: (4794.6.5 web-us-1519)
  • Revision ID: jfb@tempo-consulting.fr-20160823115424-oiz4dm2jxia4b09h
US-1519 [IMP] Prevent browser to save password

lp:~jfb-tempo-consulting/unifield-web/us-1519

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
class PrefsPassword(database.FormPassword):
35
35
    action = "/openerp/pref/password"
36
36
    string = _('Change your password')
37
 
    fields = [openobject.widgets.PasswordField(name='old_password', label=_('Old Password:'), validator=formencode.validators.NotEmpty()),
38
 
              openobject.widgets.PasswordField(name='new_password', label=_('New Password:'), validator=formencode.validators.NotEmpty()),
39
 
              openobject.widgets.PasswordField(name='confirm_password', label=_('Confirm Password:'), validator=formencode.validators.NotEmpty())]
 
37
    fields = [
 
38
        database.ReplacePasswordField(name='old_password', label=_('Old Password:')),
 
39
        database.ReplacePasswordField(name='new_password', label=_('New Password:')),
 
40
        database.ReplacePasswordField(name='confirm_password', label=_('Confirm Password:')),
 
41
    ]
40
42
 
41
43
int_pattern = re.compile(r'^\d+$')
42
44
class Preferences(Form):