heimrichhannot / contao-email2username-bundle
A Contao bundle that automatically sets the username based on the user email address.
Installs: 2 825
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.13 || ^5.0
- heimrichhannot/contao-utils-bundle: ^2.181 || ^3.0
Replaces
README
A Contao bundle that automatically sets the username based on the user email address.
Features
- disables the username field and sets the name to the given user e-mail address
- works for members and users
- case-insensitive email login within tl_member & tl_user
- can be deactivated for user and/or member (see Configuration chapter)
Install & Setup
-
Install from composer or Contao Manager
composer require heimrichhannot/contao-email2username-bundle
-
Customize config to your needs (e.g. enable only for backend user), see Configuration.
-
If you want only new members/users to get email as username, enable
disable_override_existing_usernames
option.
Configuration
You can disable this bundles functionality for member or user in your config files (typically [Project-Folder]/app/config/config.yml). By default, it is activated for both.
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