Now I’ve switched to CakeDC/Users plugin and everything is right. But, I’m using the AdminLTE plugin for creating an admin panel. I want to create a custom login page based on AdminLTE. How can I force the layout for another plugin (Users).
Generally, I use
$this->viewBuilder()->setLayout('AdminLTE.login'); but in this case, I don’t have the controller to put this method and the Users Controller are into the vendor directory.
If I put the setLayout method into AppController it works, but after login the page show me a lot of red alert, and I don’t understand why.
Someone have any idea to fix this?