Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/lostpassword/controller/lostcontroller.php')
-rw-r--r--core/lostpassword/controller/lostcontroller.php25
1 files changed, 24 insertions, 1 deletions
diff --git a/core/lostpassword/controller/lostcontroller.php b/core/lostpassword/controller/lostcontroller.php
index b1be65b4f01..e4d51fde077 100644
--- a/core/lostpassword/controller/lostcontroller.php
+++ b/core/lostpassword/controller/lostcontroller.php
@@ -20,13 +20,36 @@ use \OC\Core\LostPassword\EncryptedDataException;
class LostController extends Controller {
+ /**
+ * @var \OCP\IURLGenerator
+ */
protected $urlGenerator;
+
+ /**
+ * @var \OCP\IUserManager
+ */
protected $userManager;
+
+ /**
+ * @var \OC_Defaults
+ */
protected $defaults;
+
+ /**
+ * @var IL10N
+ */
protected $l10n;
protected $from;
protected $isDataEncrypted;
+
+ /**
+ * @var IConfig
+ */
protected $config;
+
+ /**
+ * @var IUserSession
+ */
protected $userSession;
public function __construct($appName,
@@ -110,7 +133,7 @@ class LostController extends Controller {
throw new \Exception($this->l10n->t('Couldn\'t reset password because the token is invalid'));
}
- if (!$user->setPassword($userId, $password)) {
+ if (!$user->setPassword($password)) {
throw new \Exception();
}