summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-07-24 12:50:39 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-24 12:50:39 +0200
commita8b6cc6a072db265a587ae0bb6b2512e2f56e06d (patch)
tree837a2cb32269fe4b7fac7110c09bdbe177cf3519 /core
parente2327f83ed60ca29fd1513a40bcefd26e52c54bf (diff)
downloadnextcloud-server-a8b6cc6a072db265a587ae0bb6b2512e2f56e06d.tar.gz
nextcloud-server-a8b6cc6a072db265a587ae0bb6b2512e2f56e06d.zip
- adding default value for $recoveryPassword
- set password correctly in lost password
Diffstat (limited to 'core')
-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();
}