dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deprecate setting Parser::mTitle to null
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiResetPassword.php
diff --git
a/includes/api/ApiResetPassword.php
b/includes/api/ApiResetPassword.php
index
7783826
..
6f13af2
100644
(file)
--- a/
includes/api/ApiResetPassword.php
+++ b/
includes/api/ApiResetPassword.php
@@
-20,7
+20,7
@@
* @file
*/
* @file
*/
-use MediaWiki\
Auth\AuthManager
;
+use MediaWiki\
MediaWikiServices
;
/**
* Reset password, with AuthManager
/**
* Reset password, with AuthManager
@@
-63,7
+63,7
@@
class ApiResetPassword extends ApiBase {
$this->requireOnlyOneParameter( $params, 'user', 'email' );
$this->requireOnlyOneParameter( $params, 'user', 'email' );
- $passwordReset =
new PasswordReset( $this->getConfig(), AuthManager::singleton()
);
+ $passwordReset =
MediaWikiServices::getInstance()->getPasswordReset(
);
$status = $passwordReset->isAllowed( $this->getUser() );
if ( !$status->isOK() ) {
$status = $passwordReset->isAllowed( $this->getUser() );
if ( !$status->isOK() ) {