PHP Класс Elcodi\Store\UserBundle\EventListener\RememberPasswordCredentialsEventListener

Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

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