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
Merge "Add .pipeline/ with dev image variant"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiResetPassword.php
diff --git
a/includes/api/ApiResetPassword.php
b/includes/api/ApiResetPassword.php
index
a4b51b5
..
6b1c217
100644
(file)
--- a/
includes/api/ApiResetPassword.php
+++ b/
includes/api/ApiResetPassword.php
@@
-1,6
+1,6
@@
<?php
/**
<?php
/**
- * Copyright © 2016
Brad Jorsch <bjorsch@wikimedia.org>
+ * Copyright © 2016
Wikimedia Foundation and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-21,6
+21,7
@@
*/
use MediaWiki\Auth\AuthManager;
*/
use MediaWiki\Auth\AuthManager;
+use MediaWiki\MediaWikiServices;
/**
* Reset password, with AuthManager
/**
* Reset password, with AuthManager
@@
-63,7
+64,11
@@
class ApiResetPassword extends ApiBase {
$this->requireOnlyOneParameter( $params, 'user', 'email' );
$this->requireOnlyOneParameter( $params, 'user', 'email' );
- $passwordReset = new PasswordReset( $this->getConfig(), AuthManager::singleton() );
+ $passwordReset = new PasswordReset(
+ $this->getConfig(),
+ AuthManager::singleton(),
+ MediaWikiServices::getInstance()->getPermissionManager()
+ );
$status = $passwordReset->isAllowed( $this->getUser() );
if ( !$status->isOK() ) {
$status = $passwordReset->isAllowed( $this->getUser() );
if ( !$status->isOK() ) {