From e753954862ff188c59f839837789f96da7eeca0b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 24 Apr 2023 19:36:40 +0200 Subject: [PATCH] [Validator] Update the name of a level in PasswordStrength constraint --- reference/constraints/PasswordStrength.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/reference/constraints/PasswordStrength.rst b/reference/constraints/PasswordStrength.rst index 2625cbc0f40..ce18f95c4f6 100644 --- a/reference/constraints/PasswordStrength.rst +++ b/reference/constraints/PasswordStrength.rst @@ -1,6 +1,10 @@ PasswordStrength ================ +.. versionadded:: 6.3 + + The ``PasswordStrength`` constraint was introduced in Symfony 6.3. + Validates that the given password has reached the minimum strength required by the constraint. @@ -15,7 +19,7 @@ Basic Usage The following constraint ensures that the ``rawPassword`` property of the ``User`` class reaches the minimum strength required by the constraint. -By default, the minimum required score is 2. +By default, the minimum required score is ``2``. .. configuration-block:: @@ -77,11 +81,12 @@ Available Options ``minScore`` ~~~~~~~~~~~~ -**type**: ``integer`` **default**: ``PasswordStrength::STRENGTH_REASONABLE`` (``2``) +**type**: ``integer`` **default**: ``PasswordStrength::STRENGTH_MEDIUM`` (``2``) The minimum required strength of the password. Available constants are: + * ``PasswordStrength::STRENGTH_WEAK`` = ``1`` -* ``PasswordStrength::STRENGTH_REASONABLE`` = ``2`` +* ``PasswordStrength::STRENGTH_MEDIUM`` = ``2`` * ``PasswordStrength::STRENGTH_STRONG`` = ``3`` * ``PasswordStrength::STRENGTH_VERY_STRONG`` = ``4``