Skip to content

Commit dd52ee6

Browse files
committed
minor #21092 [Security] Remove mentions to deprecated eraseCredentials() method (javiereguiluz)
This PR was merged into the 8.0 branch. Discussion ---------- [Security] Remove mentions to deprecated eraseCredentials() method Fxies #21085. Commits ------- 29fc409 [Security] Remove mentions to deprecated eraseCredentials() method
2 parents 56b553f + 29fc409 commit dd52ee6

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

reference/configuration/security.rst

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,6 @@ access_denied_url
4646
Defines the URL where the user is redirected after a ``403`` HTTP error (unless
4747
you define a custom access denial handler). Example: ``/no-permission``
4848

49-
erase_credentials
50-
-----------------
51-
52-
**type**: ``boolean`` **default**: ``true``
53-
54-
If ``true``, the ``eraseCredentials()`` method of the user object is called
55-
after authentication::
56-
57-
use Symfony\Component\Security\Core\User\UserInterface;
58-
59-
class User implements UserInterface
60-
{
61-
// ...
62-
63-
public function eraseCredentials(): void
64-
{
65-
// If you store any temporary, sensitive data on the user, clear it here
66-
// $this->plainPassword = null;
67-
}
68-
}
69-
70-
.. deprecated:: 7.3
71-
72-
Since Symfony 7.3, ``eraseCredentials()`` methods are deprecated and are
73-
not called if they have the ``#[\Deprecated]`` attribute.
74-
7549
expose_security_errors
7650
----------------------
7751

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy