eye4web/e4w-zfc-user-redirect-url

此插件更改了ZfcUser的默认重定向行为,从使用路由改为使用重定向参数中的URL。

0.0.3 2015-12-12 14:00 UTC

This package is not auto-updated.

Last update: 2024-09-17 14:22:20 UTC


README

简介

此模块将ZfcUser的重定向行为更改为使用URL而不是路由。重定向URL将与白名单进行匹配。默认情况下,localhost和当前域名被列入白名单。

安装

使用composer

  1. 将此项目添加到composer.json

    "require": {
        "eye4web/e4w-zfc-user-redirect-url": "dev-master"
    }
  2. 现在运行以下命令让composer下载模块:

    $ php composer.phar update
  3. 在您的 application.config.php 文件中启用它。

    <?php
    return array(
        'modules' => array(
            // ...
            'E4W\ZfcUser\RedirectUrl'
        ),
        // ...
    );
  4. 将config/e4w.zfcuser.redirecturl.global.php.dist复制到config/autoload/e4w.zfcuser.redirecturl.global.php,并添加白名单域名。