[FEATURE] Add password policy validation for TCA type=password
It is now possible to assign a password policy to TCA fields of the type `password`. For configured fields, the password policy validator will be used in `DataHandler` to ensure, that the new password complies with the configured password policy. The TCA field `password` for the tables `be_users` and `fe_users` now use the password policy configured in `$GLOBALS['TYPO3_CONF_VARS']['FE']['passwordPolicy']` (fe_users) or `$GLOBALS['TYPO3_CONF_VARS']['BE']['passwordPolicy']` (be_users) by default. If a password does not comply with the configured password policy, the password is not saved, a warning is logged to `sys_log` and a flash message is shown. Resolves: #97389 Releases: main Signed-off-by:Torben Hansen <derhansen@gmail.com> Change-Id: Icfb1daccac6c89389cfe92fc00987c0c63ec7955 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77424 Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- Build/Sources/TypeScript/backend/form-engine/element/password-element.ts 57 additions, 0 deletions...ypeScript/backend/form-engine/element/password-element.ts
- typo3/sysext/backend/Classes/Form/Element/PasswordElement.php 63 additions, 3 deletions...3/sysext/backend/Classes/Form/Element/PasswordElement.php
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/password-element.js 13 additions, 0 deletions...Public/JavaScript/form-engine/element/password-element.js
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 58 additions, 2 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/PasswordPolicy/Validator/AbstractPasswordValidator.php 2 additions, 1 deletion...es/PasswordPolicy/Validator/AbstractPasswordValidator.php
- typo3/sysext/core/Configuration/TCA/be_users.php 1 addition, 0 deletionstypo3/sysext/core/Configuration/TCA/be_users.php
- typo3/sysext/core/Documentation/Changelog/12.3/Feature-97389-AddPasswordPolicyValidationForTCATypepassword.rst 48 additions, 0 deletions...e-97389-AddPasswordPolicyValidationForTCATypepassword.rst
- typo3/sysext/core/Resources/Private/Language/locallang_password_policy.xlf 3 additions, 0 deletions.../Resources/Private/Language/locallang_password_policy.xlf
- typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php 2 additions, 2 deletions...3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
- typo3/sysext/frontend/Configuration/TCA/fe_users.php 1 addition, 0 deletionstypo3/sysext/frontend/Configuration/TCA/fe_users.php
Loading
Please register or sign in to comment