Lunin Roman Lunin Roman - 1 year ago 103
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download