X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fauth%2FTemporaryPasswordAuthenticationRequest.php;h=bc7c779d90f1be37e060845e807cf07deb9f70ea;hb=8eb6cf585c5fb3d7dd5f014bac27518959512b98;hp=c8580520e3ff131f33d23dc0b6a44bd38466e506;hpb=0295e7260bf52a1fc6c051ad010c40abd79e1721;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/TemporaryPasswordAuthenticationRequest.php b/includes/auth/TemporaryPasswordAuthenticationRequest.php index c8580520e3..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 @@ -61,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' );