MediaWiki REL1_33
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.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))