heimrichhannot / contao-email2username-bundle
一个基于用户电子邮件地址自动设置用户名的Contao扩展包。
1.5.0
2024-03-28 10:19 UTC
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.13 || ^5.0
- heimrichhannot/contao-utils-bundle: ^2.181 || ^3.0
Replaces
README
一个基于用户电子邮件地址自动设置用户名的 Contao 扩展包。
功能
- 禁用用户名字段,并将名称设置为指定的用户电子邮件地址
- 适用于成员和用户
- tl_member & tl_user 中的不区分大小写的电子邮件登录
- 可以为用户和/或成员停用(请参阅配置章节)
安装 & 设置
-
通过composer或Contao Manager进行安装
composer require heimrichhannot/contao-email2username-bundle
-
根据您的需求自定义配置(例如,仅启用后端用户),请参阅配置。
-
如果您只想让新成员/用户使用电子邮件作为用户名,请启用
disable_override_existing_usernames
选项。
配置
您可以在配置文件中禁用此扩展包的功能(通常为 [Project-Folder]/app/config/config.yml),默认情况下,它为两者都启用。
huh_email2username: # Enable support for backend user. user: true # Enable support for frontend member. member: true # Disable overriding existing usernames. disable_override_existing_usernames: false