Prevent password fields from autocompleting, which can overwrite passwords when editing forms. Fixes bug #11923.

This commit is contained in:
Colin Kuskie 2010-10-25 10:29:16 -07:00
parent afb9efcdda
commit cb952501fc
4 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,7 @@
- fixed #11920: Defaul DataForm emails missing entries. - fixed #11920: Defaul DataForm emails missing entries.
- fixed #11921: DataForm emails contain 1 table per field - fixed #11921: DataForm emails contain 1 table per field
- fixed #11922: Help tempalte is squatting on a good URL - fixed #11922: Help tempalte is squatting on a good URL
- fixed #11923: Collaboration System Mail Cron Errors
7.10.3 7.10.3
- fixed #11903: Unnecessary debug in Thingy - fixed #11903: Unnecessary debug in Thingy

View file

@ -556,6 +556,7 @@ sub definition {
tab=>'mail', tab=>'mail',
label=>$i18n->get("mail account"), label=>$i18n->get("mail account"),
hoverHelp=>$i18n->get("mail account help"), hoverHelp=>$i18n->get("mail account help"),
extras => 'autocomplete="off"',
}, },
mailPassword=>{ mailPassword=>{
fieldType=>"password", fieldType=>"password",
@ -563,6 +564,7 @@ sub definition {
tab=>'mail', tab=>'mail',
label=>$i18n->get("mail password"), label=>$i18n->get("mail password"),
hoverHelp=>$i18n->get("mail password help"), hoverHelp=>$i18n->get("mail password help"),
extras => 'autocomplete="off"',
}, },
mailAddress=>{ mailAddress=>{
fieldType=>"email", fieldType=>"email",

View file

@ -400,7 +400,8 @@ sub editUserForm {
$f->password( $f->password(
name=>"authWebGUI.identifier", name=>"authWebGUI.identifier",
label=>$i18n->get(51), label=>$i18n->get(51),
value=>"password" value=>"password",
extras=>'autocomplete="off"',
); );
$f->interval( $f->interval(
-name=>"authWebGUI.passwordTimeout", -name=>"authWebGUI.passwordTimeout",

View file

@ -646,6 +646,7 @@ sub www_editUser {
-name=>"username", -name=>"username",
-label=>$i18n->get(50), -label=>$i18n->get(50),
-value=>$username -value=>$username
-extras=>'autocomplete="off"',
); );
my %status; my %status;
tie %status, 'Tie::IxHash'; tie %status, 'Tie::IxHash';