File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -3825,6 +3825,29 @@ The :doc:`NotCompromisedPassword </reference/constraints/NotCompromisedPassword>
38253825constraint makes HTTP requests to a public API to check if the given password
38263826has been compromised in a data breach.
38273827
3828+ .. _reference-validation-not-compromised-password-enabled :
3829+
3830+ enabled
3831+ """""""
3832+
3833+ **type **: ``boolean `` **default **: ``true ``
3834+
3835+ If you set this option to ``false ``, no HTTP requests will be made and the given
3836+ password will be considered valid. This is useful when you don't want or can't
3837+ make HTTP requests, such as in ``dev `` and ``test `` environments or in
3838+ continuous integration servers.
3839+
3840+ endpoint
3841+ """"""""
3842+
3843+ **type **: ``string `` **default **: ``null ``
3844+
3845+ By default, the :doc: `NotCompromisedPassword </reference/constraints/NotCompromisedPassword >`
3846+ constraint uses the public API provided by `haveibeenpwned.com `_. This option
3847+ allows to define a different, but compatible, API endpoint to make the password
3848+ checks. It's useful for example when the Symfony application is run in an
3849+ intranet without public access to the internet.
3850+
38283851static_method
38293852.............
38303853
You can’t perform that action at this time.
0 commit comments