File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
PasswordStrength
2
2
================
3
3
4
+ .. versionadded :: 6.3
5
+
6
+ The ``PasswordStrength `` constraint was introduced in Symfony 6.3.
7
+
4
8
Validates that the given password has reached the minimum strength required by
5
9
the constraint.
6
10
@@ -15,7 +19,7 @@ Basic Usage
15
19
16
20
The following constraint ensures that the ``rawPassword `` property of the
17
21
``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 `` .
19
23
20
24
.. configuration-block ::
21
25
@@ -77,11 +81,12 @@ Available Options
77
81
``minScore ``
78
82
~~~~~~~~~~~~
79
83
80
- **type **: ``integer `` **default **: ``PasswordStrength::STRENGTH_REASONABLE `` (``2 ``)
84
+ **type **: ``integer `` **default **: ``PasswordStrength::STRENGTH_MEDIUM `` (``2 ``)
81
85
82
86
The minimum required strength of the password. Available constants are:
87
+
83
88
* ``PasswordStrength::STRENGTH_WEAK `` = ``1 ``
84
- * ``PasswordStrength::STRENGTH_REASONABLE `` = ``2 ``
89
+ * ``PasswordStrength::STRENGTH_MEDIUM `` = ``2 ``
85
90
* ``PasswordStrength::STRENGTH_STRONG `` = ``3 ``
86
91
* ``PasswordStrength::STRENGTH_VERY_STRONG `` = ``4 ``
87
92
You can’t perform that action at this time.
0 commit comments