Two panels (User and Admin), with shared login page and session

Now that you can have more than one panel, I'm trying to have two panels:

  • Main (with no path, so on /) with authentication (and default).
  • Admin (/admin) with authentication.
Is it possible to share the login between the two panels? Meaning that both panels use the login form on /login and after login in there, you can access both panels (if your role allows it, which I don't know yet how I will restrict).

I was planning to use the #bezhansalleh-panel-switch plugin, so if you are an admin, you'll see the action there to switch between both panels, without needing to authenticate again. If you are a user, no switch action should even appear.
Was this page helpful?