Prevent Email Addresses as Usernames
Beginning with FileCloud 23.241, Allow Email as Username is enabled by default.
Prior to FileCloud 23.241, Allow Email as Username was disabled by default.
By default, FileCloud usernames can be the same as the user's email address. You can prevent use of user's email addresses as usernames by disabling an Admin setting.
To prevent use of email addresses as user names:
- Click Settings in the navigation panel.
- Click the Admin tab
- Uncheck Allow Email as Username.
- Click Save.
Emails may no longer be used as usernames for all types of users.
Prioritize Email as Username
When users are imported into FileCloud or created at login, their current usernames may be duplicates of existing ones in FileCloud. In these cases, you can prioritize using entered email over entered username as the FileCloud username to take advantage of the fact that email is always unique for each user.
When TONIDOCLOUD_PRIORITIZE_EMAIL_AS_USERNAME is set to 1 in the FileCloud configuration file, if Allow account creation using the email as username is also set, the FileCloud username is set from the entered email rather than the entered username in the following cases. However, if username is entered and email is not entered, username is used.
- Account is created on SSO login
- Account is created on AD login
- Account is created on AD import
- Account is created on a share invite
Notes: Email will not be prioritized over username when the user is created from the admin portal or on regular FileCloud login with the new account option.
To prioritize email over username:
- In the Settings > Admin tab, check Allow Email as Username.
- Open cloudconfig.php:
Windows Location: XAMPP DIRECTORY/htdocs/config/cloudconfig.php
Linux Location: /var/www/config/cloudconfig.php - Add the setting:
define("TONIDOCLOUD_PRIORITIZE_EMAIL_AS_USERNAME", 1);