MediaWiki REL1_34
SpamBlacklistPreAuthenticationProvider.php
Go to the documentation of this file.
1<?php
2
4
6 public function testForAccountCreation( $user, $creator, array $reqs ) {
8 if ( $blacklist->checkUser( $user ) ) {
9 return StatusValue::newGood();
10 }
11
12 return StatusValue::newFatal( 'spam-blacklisted-email-signup' );
13 }
14}
static getEmailBlacklist()
A base class that implements some of the boilerplate for a PreAuthenticationProvider.
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.