Extension:EmailRegistrationFilter

The EmailRegistrationFilter checks an account creation, and forbids it following a blacklists of patterns (or only allows it following a whitelist, depending on the mode of use). It's intended to be a replacement for Extension:CheckEmailAddress. The extension works by extending a PrimaryAuthenticationProvider (actually, a LocalPasswordPrimaryAuthenticationProvider).

Configuration parameters
Within the  file:

PatternList
List of preg_match patterns to be tested against an email address.

IsWhiteList
True only allows a registation if the email matches a pattern in the value. If false, the PatternList becomes a blacklist.

ErrorMessage
Custom error message for a rejected registration.

Example
If you want to only allow  and   domains to be able to register with email address, you can use the following configuration: If you want to block only those domains, change the  value from true to false.