Browse Source

[core] Disable password autocomplete on the login form

Enrico Berti 10 years ago
parent
commit
9225297599
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/auth/forms.py

+ 1 - 1
desktop/core/src/desktop/auth/forms.py

@@ -46,7 +46,7 @@ class AuthenticationForm(AuthAuthenticationForm):
   }
   }
 
 
   username = CharField(label=_t("Username"), max_length=30, widget=TextInput(attrs={'maxlength': 30, 'placeholder': _t("Username"), "autofocus": "autofocus"}))
   username = CharField(label=_t("Username"), max_length=30, widget=TextInput(attrs={'maxlength': 30, 'placeholder': _t("Username"), "autofocus": "autofocus"}))
-  password = CharField(label=_t("Password"), widget=PasswordInput(attrs={'placeholder': _t("Password")}))
+  password = CharField(label=_t("Password"), widget=PasswordInput(attrs={'placeholder': _t("Password"), 'autocomplete': 'off'}))
 
 
   def authenticate(self):
   def authenticate(self):
     return super(AuthenticationForm, self).clean()
     return super(AuthenticationForm, self).clean()