Help with User Module Login Redirect: Need to redirect users to particular urls depending on the user role when using standard /login
Created 7 years ago by b1gw0rmI have two particular user roles setup where I would like to redirect users in each group to a different landing url when they login via the standard Pyro /login route. For sake of discussion, the landing url can be /group1 and /group2. Is Pyro setup to handle that with configuration? Or do I need to extend/customize the default handler? Any advice or insight is appreciated.
@b1gw0rm you can add a listener to your module's service provider:
Then have your listener look something like:
The above is pretty rudimentary, but you should be able to figure it out from that example.