diff --git a/symfony/user.md b/symfony/user.md index 6d76f0523a2..4e504e23bed 100644 --- a/symfony/user.md +++ b/symfony/user.md @@ -139,14 +139,6 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface { return (string) $this->email; } - - /** - * @see UserInterface - */ - public function eraseCredentials(): void - { - $this->plainPassword = null; - } } ``` @@ -258,7 +250,6 @@ final readonly class UserPasswordHasher implements ProcessorInterface $data->getPlainPassword() ); $data->setPassword($hashedPassword); - $data->eraseCredentials(); return $this->processor->process($data, $operation, $uriVariables, $context); }