MediaWiki
REL1_34
SpamBlacklistPreAuthenticationProvider.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\Auth\AbstractPreAuthenticationProvider
;
4
5
class
SpamBlacklistPreAuthenticationProvider
extends
AbstractPreAuthenticationProvider
{
6
public
function
testForAccountCreation
( $user, $creator, array $reqs ) {
7
$blacklist =
BaseBlacklist::getEmailBlacklist
();
8
if
( $blacklist->checkUser( $user ) ) {
9
return
StatusValue::newGood();
10
}
11
12
return
StatusValue::newFatal(
'spam-blacklisted-email-signup'
);
13
}
14
}
BaseBlacklist\getEmailBlacklist
static getEmailBlacklist()
Definition
BaseBlacklist.php:106
MediaWiki\Auth\AbstractPreAuthenticationProvider
A base class that implements some of the boilerplate for a PreAuthenticationProvider.
Definition
AbstractPreAuthenticationProvider.php:31
SpamBlacklistPreAuthenticationProvider
Definition
SpamBlacklistPreAuthenticationProvider.php:5
SpamBlacklistPreAuthenticationProvider\testForAccountCreation
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
Definition
SpamBlacklistPreAuthenticationProvider.php:6
extensions
SpamBlacklist
includes
SpamBlacklistPreAuthenticationProvider.php
Generated on Mon Nov 25 2024 16:04:44 for MediaWiki by
1.10.0