1
0
Fork
You've already forked RegistrationEmailAllowlist
0
A MediaWiki extension which only allows account registrations from email domains listed in a configurable allowlist.
  • PHP 100%
2023年12月13日 09:19:13 +00:00
i18n s/Addr/Adr/ 2023年12月13日 09:04:33 +00:00
includes add initial version 2023年12月11日 17:49:36 +01:00
extension.json add initial version 2023年12月11日 17:49:36 +01:00
LICENSE Initial commit 2023年12月11日 16:04:46 +00:00
README.md README.md aktualisiert 2023年12月13日 09:19:13 +00:00

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;