PHP Class Elcodi\Store\UserBundle\EventListener\RememberPasswordCredentialsEventListener

Show file Open project: elcodi/bamboo

Public Methods

Method Description
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, string $providerKey ) Build method
giveCredentialsWithNewPassword ( Elcodi\Component\User\Event\PasswordRecoverEvent $event ) on Password Recover event

Method Details

__construct() public method

Build method
public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, string $providerKey )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface Token storage
$providerKey string Provider key

giveCredentialsWithNewPassword() public method

When a password is recovered, we must always create new token with current user. It means that recover a password always will mean log in the website
public giveCredentialsWithNewPassword ( Elcodi\Component\User\Event\PasswordRecoverEvent $event )
$event Elcodi\Component\User\Event\PasswordRecoverEvent Password recover event