contao-bundle contao-email2username-bundle
Adds a simple callback to set the username from email.
heimrichhannot/contao-email2username-bundle
Adds a simple callback to set the username from email.
- Wednesday, April 4, 2018
- by digitales@heimrich-hannot.de
- Repository
- 6 Watchers
- 0 Stars
- 68 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 100 % Grown
Contao Email2Username Bundle
, (*1)
A Contao bundle that automatically sets the username based on the user email address., (*2)
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, (*3)
composer require heimrichhannot/contao-email2username-bundle
-
Customize config to your needs (e.g. enable only for backend user), see Configuration., (*4)
-
If you want only new members/users to get email as username, enable disable_override_existing_usernames
option., (*5)
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., (*6)
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