From 4b318bf40613fbd2b2e32a51877f04e07c46857b Mon Sep 17 00:00:00 2001 From: Torben Hansen <derhansen@gmail.com> Date: Fri, 4 Aug 2023 16:38:04 +0200 Subject: [PATCH] [TASK] Mark PasswordPolicyValidator as public API With the introduction of configurable password policies, the `PasswordPolicyValidator` has been introduced. The class is however marked as `@internal`, which basically was a mistake. 3rd party extensions providing users the possibility to change a password should be able to validate the new password against the globally configured password policy by using the `isValidPassword()` method in the `PasswordPolicyValidator` class. The change therefore mark the class as public API by removing the `@internal` annotation. Resolves: #101579 Releases: main, 12.4 Signed-off-by: Torben Hansen <derhansen@gmail.com> Change-Id: I8869a8465199a2c071d3d780af640a0c903404c3 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80357 Tested-by: core-ci <typo3@b13.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../core/Classes/PasswordPolicy/PasswordPolicyValidator.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/typo3/sysext/core/Classes/PasswordPolicy/PasswordPolicyValidator.php b/typo3/sysext/core/Classes/PasswordPolicy/PasswordPolicyValidator.php index 82cabf378892..cade0b1696ad 100644 --- a/typo3/sysext/core/Classes/PasswordPolicy/PasswordPolicyValidator.php +++ b/typo3/sysext/core/Classes/PasswordPolicy/PasswordPolicyValidator.php @@ -22,8 +22,6 @@ use TYPO3\CMS\Core\PasswordPolicy\Validator\Dto\ContextData; /** * Validates a password using validators configured in $GLOBALS['TYPO3_CONF_VARS']['SYS']['passwordPolicies']. * The class must be instantiated with an action (see PasswordPolicyAction) and a password policy name. - * - * @internal only to be used within ext:core, not part of TYPO3 Core API. */ class PasswordPolicyValidator { -- GitLab