thecodingmachine/symfony-vuejs

plainPassword and password encoding

vandroids opened this issue · 1 comments

Hi!

In your code there is a line:

// necessary to force the update to see the change
$em->getUnitOfWork()->recomputeSingleEntityChangeSet($meta, $entity);

I don't quite understand what's the purpose of this code?

Also in a User entity you have method eraseCredentials(), but it never gets invoked. When should I use it?

Not sure about this code line: it comes from a tutorial I'd read (and I cannot remember its name).

The method eraseCredentials() comes from the UserInterface. It used internally by Symfony.