Вопрос

In my app, when a user tries to access a route behind a firewall and gets redirected to login, they are given the opportunity to create an account. After creating the account and successfully logging in, I'd like to redirect them to the initially requested page.

However, I've not been able to work out how to get access to the route they initially requested before the security kicked in. Any help?

I'm not using FOSUserBundle, and I'd like to avoid it if possible, as I'm quite far into development.

Это было полезно?

Решение

By default user redirected to the requested page. This behavior defined in DefaultAuthenticationSuccessHandler.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top