forked from chdorner/CheckRegistrationEmailDomains
A MediaWiki extension which only allows account registrations from email domains listed in a configurable allowlist.
| i18n | s/Addr/Adr/ | |
| includes | add initial version | |
| extension.json | add initial version | |
| LICENSE | Initial commit | |
| README.md | README.md aktualisiert | |
RegistrationEmailAllowlist
This is a MediaWiki extension which only allows account registrations from email domains listed in a configurable allowlist.
Installation
- Download the extension to your
extensions/directory, i.e. via Git:cd extensions/ git clone https://codeberg.org/chdorner/RegistrationEmailAllowlist.git - Enable the extension in your
LocalSettings.php:wfLoadExtension( 'RegistrationEmailAllowlist' );
Configuration
Email domains
By default, the list of allowed email domains is empty, denying any registration attempt. To enable certain email domains,
add this to your LocalSettings.php:
$wgRegistrationEmailAllowlistDomains = [ "example.com", "example.org" ];
Require Email
Because the extension aims to identify users by their e-mail address, an address is mandatory when registering. Thus you need to add to LocalSettings.php:
$wgRegistrationEmailAllowlistRequireEmail = true;