jasongrimes/silex-simpleuser

Add ability to set redirect URLs

Opened this issue · 3 comments

After login and register. More than happy to build this if you can let me know how you'd prefer it to work.

This isn't required for login as the security provider can redirect on login if you set default_target_path in the 'form' array of your secure area.

'default_target_path' =>  'dashboard', // 'dashboard' here is a named route using ->bind

I think this should be an option for SimpleUser under $app['user.options']. And then this could be re-used in the $app['security.firewalls'] when specifying the default_target_path.

But definitely 👍

That will be useful !