I have 2 different types of users, they have their own separate DB tables and are logged in entirely separately and currently I have some specific actions that only for one set of users.
How do I enable it so that when they are not logged in Yii redirects them to their correct login page and not the default login one?
I probably didn’t explain it well enough. Say I have two types of users “buyers” and “sellers”.
I have a link on my nav bar that is "list item" only a "seller" would need this link and it needs to be accessed by logged in people. When I click it as a non-logged in person it takes me to my default login system which is for "buyers", what I need to do is make the webapp take me to an alternative login page.
Hope that makes it clearer, sorry for any confusion.