8000 minor #18252 [Validator] Update the name of a level in PasswordStreng… · symfony/symfony-docs@6f8233d · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f8233d

Browse files
committed
minor #18252 [Validator] Update the name of a level in PasswordStrength constraint (javiereguiluz)
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [Validator] Update the name of a level in PasswordStrength constraint This was renamed in symfony/symfony#50133 Commits ------- e753954 [Validator] Update the name of a level in PasswordStrength constraint
2 parents e72cdc9 + e753954 commit 6f8233d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

reference/constraints/PasswordStrength.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
PasswordStrength
22
================
33

4+
.. versionadded:: 6.3
5+
6+
The ``PasswordStrength`` constraint was introduced in Symfony 6.3.
7+
48
Validates that the given password has reached the minimum strength required by
59
the constraint.
610

@@ -15,7 +19,7 @@ Basic Usage
1519

1620
The following constraint ensures that the ``rawPassword`` property of the
1721
``User`` class reaches the minimum strength required by the constraint.
18-
By default, the minimum required score is 2.
22+
By default, the minimum required score is ``2``.
1923

2024
.. configuration-block::
2125

@@ -77,11 +81,12 @@ Available Options
7781
``minScore``
7882
~~~~~~~~~~~~
7983

80-
**type**: ``integer`` **default**: ``PasswordStrength::STRENGTH_REASONABLE`` (``2``)
84+
**type**: ``integer`` **default**: ``PasswordStrength::STRENGTH_MEDIUM`` (``2``)
8185

8286
The minimum required strength of the password. Available constants are:
87+
8388
* ``PasswordStrength::STRENGTH_WEAK`` = ``1``
84-
* ``PasswordStrength::STRENGTH_REASONABLE`` = ``2``
89+
* ``PasswordStrength::STRENGTH_MEDIUM`` = ``2``
8590
* ``PasswordStrength::STRENGTH_STRONG`` = ``3``
8691
* ``PasswordStrength::STRENGTH_VERY_STRONG`` = ``4``
8792

0 commit comments

Comments
 (0)
0