summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-08-01 18:19:28 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-08-01 18:19:28 +0200
commit21d1d05667349364c162476dee46524bad900a95 (patch)
tree8966ad1fcba75ee6ff6c680138b8fe8e9b9042b1 /settings/Controller
parent84c22fdeef6986f9038d8563937cc234751d5147 (diff)
downloadnextcloud-server-21d1d05667349364c162476dee46524bad900a95.tar.gz
nextcloud-server-21d1d05667349364c162476dee46524bad900a95.zip
Use public API instead of private
The private API here doesn't have the backends yet properly initialized, probably another bug but let's go with the easy bug fix here. Next step is to write integration tests and then figure out why changing this to the private API (which it actually calls) doesn't work. Fixes https://github.com/nextcloud/server/issues/5950 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/ChangePasswordController.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/settings/Controller/ChangePasswordController.php b/settings/Controller/ChangePasswordController.php
index e0129af50f1..a758180e858 100644
--- a/settings/Controller/ChangePasswordController.php
+++ b/settings/Controller/ChangePasswordController.php
@@ -22,15 +22,15 @@
namespace OC\Settings\Controller;
use OC\HintException;
-use OC\User\Manager as UserManager;
-use OC\Group\Manager as GroupManager;
use OC\User\Session;
use OCP\App\IAppManager;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse;
+use OCP\IGroupManager;
use OCP\IL10N;
use OCP\IRequest;
use OCP\IUser;
+use OCP\IUserManager;
use OCP\IUserSession;
class ChangePasswordController extends Controller {
@@ -38,13 +38,13 @@ class ChangePasswordController extends Controller {
/** @var string */
private $userId;
- /** @var UserManager */
+ /** @var IUserManager */
private $userManager;
/** @var IL10N */
private $l;
- /** @var GroupManager */
+ /** @var IGroupManager */
private $groupManager;
/** @var Session */
@@ -59,18 +59,18 @@ class ChangePasswordController extends Controller {
* @param string $appName
* @param IRequest $request
* @param $userId
- * @param UserManager $userManager
+ * @param IUserManager $userManager
* @param IUserSession $userSession
- * @param GroupManager $groupManager
+ * @param IGroupManager $groupManager
* @param IAppManager $appManager
* @param IL10N $l
*/
public function __construct($appName,
IRequest $request,
$userId,
- UserManager $userManager,
+ IUserManager $userManager,
IUserSession $userSession,
- GroupManager $groupManager,
+ IGroupManager $groupManager,
IAppManager $appManager,
IL10N $l) {
parent::__construct($appName, $request);