%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/extensions/SpamBlacklist/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/extensions/SpamBlacklist/SpamBlacklistPreAuthenticationProvider.php

<?php

use MediaWiki\Auth\AbstractPreAuthenticationProvider;

class SpamBlacklistPreAuthenticationProvider extends AbstractPreAuthenticationProvider {
	public function testForAccountCreation( $user, $creator, array $reqs ) {
		/** @var $blacklist EmailBlacklist */
		$blacklist = BaseBlacklist::getInstance( 'email' );
		if ( $blacklist->checkUser( $user ) ) {
			return StatusValue::newGood();
		}

		return StatusValue::newFatal( 'spam-blacklisted-email-signup' );
	}
}

Zerion Mini Shell 1.0