Skip to content

[Security] remove documentation for the hide_user_not_found_option #21152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ key in your application configuration.

* `access_denied_url`_
* `expose_security_errors`_
* `hide_user_not_found`_ (deprecated)
* `session_fixation_strategy`_

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

hide_user_not_found
-------------------

**type**: ``boolean`` **default**: ``true``

.. deprecated:: 7.3

The ``hide_user_not_found`` option was deprecated in favor of the
``expose_security_errors`` option in Symfony 7.3.

If ``true``, when a user is not found a generic exception of type
:class:`Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException`
is thrown with the message "Bad credentials".

If ``false``, the exception thrown is of type
:class:`Symfony\\Component\\Security\\Core\\Exception\\UserNotFoundException`
and it includes the given not found user identifier.

session_fixation_strategy
-------------------------

Expand Down
Loading