X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FTemporaryPasswordAuthenticationRequest.php;h=bc7c779d90f1be37e060845e807cf07deb9f70ea;hb=e62a8361d75344ab15e8def60cb7f2c6c4db2adb;hp=42f0e702235d89c710d56501b680cc54cd7123b8;hpb=94117ad9c15fc57cd5a63204e43f6b190011b135;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/TemporaryPasswordAuthenticationRequest.php b/includes/auth/TemporaryPasswordAuthenticationRequest.php index 42f0e70223..bc7c779d90 100644 --- a/includes/auth/TemporaryPasswordAuthenticationRequest.php +++ b/includes/auth/TemporaryPasswordAuthenticationRequest.php @@ -21,6 +21,8 @@ namespace MediaWiki\Auth; +use MediaWiki\MediaWikiServices; + /** * This represents the intention to set a temporary password for the user. * @ingroup Auth @@ -33,12 +35,6 @@ class TemporaryPasswordAuthenticationRequest extends AuthenticationRequest { /** @var bool Email password to the user. */ public $mailpassword = false; - /** - * @var bool Do not fail certain operations if the password cannot be mailed, there is a - * backchannel present. - */ - public $hasBackchannel = false; - /** @var string Username or IP address of the caller */ public $caller; @@ -67,7 +63,7 @@ class TemporaryPasswordAuthenticationRequest extends AuthenticationRequest { * @return TemporaryPasswordAuthenticationRequest */ public static function newRandom() { - $config = \ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); + $config = MediaWikiServices::getInstance()->getMainConfig(); // get the min password length $minLength = $config->get( 'MinimalPasswordLength' );