X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiResetPassword.php;h=6f13af212aa480b2bbcc54a9ec8b48c457621a58;hb=ba76dfdd050b83eb124ef2f12a6f22c467133fca;hp=6b1c217017f3f455c4b74378445dfcc7de3a88bf;hpb=643a2e527c03cedb96a6b725a4d292faf7f76aa8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiResetPassword.php b/includes/api/ApiResetPassword.php index 6b1c217017..6f13af212a 100644 --- a/includes/api/ApiResetPassword.php +++ b/includes/api/ApiResetPassword.php @@ -20,7 +20,6 @@ * @file */ -use MediaWiki\Auth\AuthManager; use MediaWiki\MediaWikiServices; /** @@ -64,11 +63,7 @@ class ApiResetPassword extends ApiBase { $this->requireOnlyOneParameter( $params, 'user', 'email' ); - $passwordReset = new PasswordReset( - $this->getConfig(), - AuthManager::singleton(), - MediaWikiServices::getInstance()->getPermissionManager() - ); + $passwordReset = MediaWikiServices::getInstance()->getPasswordReset(); $status = $passwordReset->isAllowed( $this->getUser() ); if ( !$status->isOK() ) {