hrevert / ht-user-registration
一个扩展ZfcUser注册功能的Zend Framework 2模块,增加电子邮件地址验证
0.0.3
2014-11-29 16:06 UTC
Requires
- php: >=5.4
- mtymek/mt-mail: <1.2.0
- zf-commons/zfc-user: >=0.1,<2.0
Requires (Dev)
- phpunit/phpunit: 4.2.*
This package is auto-updated.
Last update: 2024-09-13 02:48:49 UTC
README
一个扩展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'] ] ];