Skip to content

Commit 8e6a60c

Browse files
committed
remove documentation for the hide_user_not_found_option
1 parent 9084ab6 commit 8e6a60c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

reference/configuration/security.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ key in your application configuration.
2424
* `access_denied_url`_
2525
* `erase_credentials`_
2626
* `expose_security_errors`_
27-
* `hide_user_not_found`_ (deprecated)
2827
* `session_fixation_strategy`_
2928

3029
**Advanced Options**:
@@ -65,24 +64,6 @@ option can be one of the following:
6564
accounts) but only for users who provided the correct password;
6665
* ``'all'``: shows all security-related exceptions.
6766

68-
hide_user_not_found
69-
-------------------
70-
71-
**type**: ``boolean`` **default**: ``true``
72-
73-
.. deprecated:: 7.3
74-
75-
The ``hide_user_not_found`` option was deprecated in favor of the
76-
``expose_security_errors`` option in Symfony 7.3.
77-
78-
If ``true``, when a user is not found a generic exception of type
79-
:class:`Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException`
80-
is thrown with the message "Bad credentials".
81-
82-
If ``false``, the exception thrown is of type
83-
:class:`Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException`
84-
and it includes the given not found user identifier.
85-
8667
session_fixation_strategy
8768
-------------------------
8869

0 commit comments

Comments
 (0)