[FEATURE] Add PSR-14 event to enrich password validation ContextData
A new PSR-14 event `EnrichPasswordValidationContextDataEvent` is introduced to allow extension authors to enrich the `ContextData` DTO before a password is validated against a password policy. Additionally, the `ContextData` DTO in the `PasswordReset` class now includes the backend user username and realName attribute, which can be used in custom password policy validators. Resolves: #100294 Releases: main Signed-off-by:Torben Hansen <derhansen@gmail.com> Change-Id: I395a0eb75749c12c4beac3611c436209c07844cf Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78259 Tested-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Simon Schaufelberger <simonschaufi+typo3@gmail.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- typo3/sysext/backend/Classes/Authentication/PasswordReset.php 14 additions, 1 deletion...3/sysext/backend/Classes/Authentication/PasswordReset.php
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 11 additions, 0 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/PasswordPolicy/Event/EnrichPasswordValidationContextDataEvent.php 52 additions, 0 deletions...Policy/Event/EnrichPasswordValidationContextDataEvent.php
- typo3/sysext/core/Documentation/Changelog/12.3/Feature-100294-AddPSR-14EventToEnrichPasswordValidationContextData.rst 78 additions, 0 deletions...4-AddPSR-14EventToEnrichPasswordValidationContextData.rst
- typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php 8 additions, 0 deletions...3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
- typo3/sysext/felogin/Classes/Controller/PasswordRecoveryController.php 10 additions, 0 deletions...felogin/Classes/Controller/PasswordRecoveryController.php
- typo3/sysext/setup/Classes/Controller/SetupModuleController.php 11 additions, 0 deletions...sysext/setup/Classes/Controller/SetupModuleController.php
Please register or sign in to comment