Open mathroc opened 6 years ago
BlameListener should listen to Symfony\Component\Security\Http\SecurityEvents::INTERACTIVE_LOGIN at least and the set the user when someone login
BlameListener
Symfony\Component\Security\Http\SecurityEvents::INTERACTIVE_LOGIN
otherwise entities create on registration or login can't have blameable fields
I also listen to FOS\UserBundle\FOSUserEvents::SECURITY_IMPLICIT_LOGIN
FOS\UserBundle\FOSUserEvents::SECURITY_IMPLICIT_LOGIN
alternatively, maybe Gedmo\Blameable\BlameableListener should be overwritten and injectd with the token storage and use that in getFieldValue
Gedmo\Blameable\BlameableListener
getFieldValue
I second this. Was trying to sort it out, and found this issue.
BlameListener
should listen toSymfony\Component\Security\Http\SecurityEvents::INTERACTIVE_LOGIN
at least and the set the user when someone loginotherwise entities create on registration or login can't have blameable fields
I also listen to
FOS\UserBundle\FOSUserEvents::SECURITY_IMPLICIT_LOGIN
alternatively, maybe
Gedmo\Blameable\BlameableListener
should be overwritten and injectd with the token storage and use that ingetFieldValue