FOSUserBundle. How can I redirect to the "Remember Me" login?

I want to redirect my login (including "Remember me") based on certain conditions.

I have implemented the AuthenticationSuccessHandlerInterface service .

This works well for interactive login, but it doesn't work when registering "Remember me".

I've also tried the kernel security.interactive_login event which triggers the "Remember me", but there doesn't seem to be a way to redirect from there.

I thought the FOSUserBundle SECURITY_IMPLICIT_LOGIN event could do this, but unfortunately not. It doesn't fire "Remember me".

Any other options?

thank

+3


source to share





All Articles