Option to disable asking new users for an email addres
As part of the registration process new users need to provide an email address. That email address is stored with the user account and required for some services to function like SMF, PHPBB Xenforo.
Some Auth installations do not need to store email addresses for their users, e.g. because they do not plan to use any of the services that require them. Those installation currently have the option to disable the verification of email addresses, but new users still need to enter an email address during registration. This is seen as an unnecessary additional step in the registration process by those you do not need email addresses. Therefore an often requested feature has been to disable it.
This change delivers the requested feature by adding the option to completely disable asking new users for their email address. When disabled Auth will generate unique and secure emails for the user based on the current it's current domain.
Example: For an Auth running on auth.example.com a generated email address could be:
To make new admins aware of the potential consequences of disabling email addresses, this change comers with new documentation about the login process that includes a clear warning about disabling it.
Note: This change adds the new dependency tldextract, which is needed to reliable extract the domain name of the current Auth installation.