diff --git a/typo3/sysext/backend/Classes/Form/Element/PasswordElement.php b/typo3/sysext/backend/Classes/Form/Element/PasswordElement.php index 755219b5be063796995ddd5d1870927b7a68123b..0ad9ec1c75cae33b785569418337e7dde82474f9 100644 --- a/typo3/sysext/backend/Classes/Form/Element/PasswordElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/PasswordElement.php @@ -134,7 +134,7 @@ class PasswordElement extends AbstractFormElement $attributes['placeholder'] = trim($config['placeholder']); } - $attributes['autocomplete'] = ($config['autocomplete'] ?? false) ? 'new-' . $fieldName : 'off'; + $attributes['autocomplete'] = ($config['autocomplete'] ?? false) ? 'current-password' : 'new-password'; $fieldControlResult = $this->renderFieldControl(); $fieldControlHtml = $fieldControlResult['html']; diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97104-NewTCATypePassword.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97104-NewTCATypePassword.rst index 71a83ef1580afb0a47e497e523b35daccf60a92a..f83eca70d2519d0dd06dfe7bbf9ed357d2d2995e 100644 --- a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97104-NewTCATypePassword.rst +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97104-NewTCATypePassword.rst @@ -21,9 +21,9 @@ TCA type :php:`password` has been added. It replaces the :php:`eval=password` and :php:`eval=saltedPassword` option of TCA type :php:`input`. TCA password fields will be rendered as input :php:`type=password` fields. -By default, the :php:`autocomplete=off` attribute will be added to the +By default, the :php:`autocomplete=new-password` attribute will be added to the resulting input field. If :php:`autocomplete=true` is configured in TCA, a -:php:`autocomplete=new-fieldname` attribute will be added to the element. +:php:`autocomplete=current-password` attribute will be added to the element. The TCA type :php:`password` features the following column configuration: