Issue Feature Rejected

#106460Introduce Extbase Password Policy Validator

Lina Wolf 03/31/25, 07:13 updated 04/01/25, 16:53

Description

As an Easy way to use the TYPO3\CMS\Core\PasswordPolicy\PasswordPolicyValidator in Extbase.

At the moment ppl need to check the for the password policy in their controller or implement the Extbase Validator themselves.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Torben Hansen commented <span data-processor="relativetime" data-value="2025-04-01T16:38:21+00:00" > 04/01/25, 16:38 </span>

    If extbase would provide an easy/simple validator, which just validates against a given password policy without providing flexiblity, this may only cover some usecases.

    Password validation in general may however include additional validations/requirements like:

    • Check, if given password is not empty (depends on usecase – $acceptsEmptyValues may be true or false)
    • Check, if user did provide the current password in order to change it
    • Check, if an additional password confirmation field equals the first password
    • Enriched password policy validation context data with (custom) data from current frontend user

    Since TYPO3\CMS\Core\PasswordPolicy\PasswordPolicyValidator is public API, I think it would maybe be better to let developers implement the core PasswordPolicyValidator into their own validator to provide most flexibility and to avoid requiring to write additional custom validators to perform additional password validation tasks beside a possible “easy” extbase password policy validator.

  2. Georg Ringer commented and changed status New Rejected <span data-processor="relativetime" data-value="2025-04-01T16:53:41+00:00" > 04/01/25, 16:53 </span>

    thanks torben for clarification, closing issue