As for the controller not to obtain the encrypted password of an authorized user?

As for the controller not to obtain the encrypted password of an authorized user?

On the documentation page there is an example symfony.com/doc/current/security/custom_password_a...

How do I pass this value $token->getCredentials() in controller?

Use Symfony 3.4

Good people help, save, kick in the right direction, thanks!
June 10th 19 at 14:44
1 answer
June 10th 19 at 14:46
From the controller via the service call to the token:
$this->container->get('security.token_storage')->getToken()->getCredentials();
In this case returns null - marina.Gutma commented on June 10th 19 at 14:49

Find more questions by tags Symfony