hrevert/ht-user-registration

一个扩展ZfcUser注册功能的Zend Framework 2模块,增加电子邮件地址验证

0.0.3 2014-11-29 16:06 UTC

This package is auto-updated.

Last update: 2024-09-13 02:48:49 UTC


README

Master Branch Build Status Latest Stable Version Latest Unstable Version Total Downloads Scrutinizer Code Quality Code Coverage

一个扩展ZfcUser注册功能的Zend Framework 2模块。当启用公共注册时,它提供电子邮件地址验证功能;当禁用公共注册时,它向用户的电子邮件地址发送带有设置账户密码链接的电子邮件。

安装

  • "hrevert/ht-user-registration": "0.0.*" 添加到您的 composer.json 中,并运行 php composer.phar update
  • config/application.config.php 中启用此模块
  • 将位于 vendor/hrevert/ht-user-registration/config/ht-user-registration.global.php 的文件复制到 ./config/autoload/ht-user-registration.global.php,并根据需要更改值。
  • 此外,请根据文档中的说明配置 MtMail

注意

如果您不希望未经验证的用户登录,此模块还附带了一个认证适配器。

return [
    'zfcuser' => [
        'auth_adapters' => [80 => 'HtUserRegistration\Authentication\Adapter\EmailVerification']
    ]
];