Lunin Roman Lunin Roman - 8 months ago 55
AngularJS Question

Login with FOSUser and Angular.js after auto-logout

guys. I'm using FOSUser bundle and angular.js 1.5.0, angular-route 1.5.0 in my Symfony2.8 project. And I get some problem here. Well, when fosuser bundle make auto-logout, the login form are shown, that's ok.
And, my query string looks like that with angular-route:

So, fosuser make redirect to
, but not to
, when the form was filled.
By the way, everything works perfect for simple login, when you just opened site. Any suggestions, thanks.


Here is the solution, the trick is to rewrite the symfony standard component Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler