如何在cakedc,Cakephp 3.0中提供loginredirect

how to give loginredirect in cakedc, Cakephp 3.0

如何在使用 cakedc Users 插件时在 cakephp 中提供 loginredirect 以及告诉在哪里进行这些更改 src/controller/AppController 或 vendor/cakedc/users/src/Controller/AppController

AppContoller of cakedc users plugin
    class AppController extends BaseController
    {
        public function initialize()
        {
            parent::initialize();
            $this->loadComponent('Security');
            $this->loadComponent('Csrf');
            $this->loadComponent('CakeDC/Users.UsersAuth', ['loginAction' => ['controller' => 'Blogs','action' => 'index']]);
         }
    }

您可以在加载插件后更新 Auth 组件配置中的默认值,如下所示:

$this->Auth->config('loginAction', [...your url...]);

或者您可以使用此处建议的基于配置的插件初始化 https://github.com/CakeDC/users/blob/master/Docs/Documentation/Configuration.md